diff --git a/CHANGELOG.md b/CHANGELOG.md index 0e64556..47de33c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,24 @@ +# dbt_ad_reporting v1.10.0 + +[PR #120](https://github.com/fivetran/dbt_ad_reporting/pull/120) includes the following updates: + +## Breaking Changes (within upstream dbt_linkedin_source and dbt_linkedin) +- The dependency on dbt_linkedin has been bumped to the `[">=0.10.0", "<0.11.0"]` range and the dbt_linkedin_source dependency has been bumped to the `[">=0.10.0", "<0.11.0"]` range. These upstream version ranges include the following breaking changes. For more details regarding these changes, 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. + - The `click_uri_type` field has been added to the below mentioned models. This field allows users to differentiate which click uri type (`text_ad` or `spotlight`) is being used to populate the results of the `click_uri` field. + - `stg_linkedin_ads__creative_history` + - `linkedin_ads__creative_report` + - `linkedin_ads__url_report` + - Please be aware this new field only supports `text_ad` or `spotlight` click uri types. If you are interested in this package supporting more click uri ad types, please let us know in this [Feature Request](https://github.com/fivetran/dbt_linkedin_source/issues/70). + +## Bug Fixes (upstream dbt_linkedin_source change) +- The `click_uri` field has been adjusted to populate the results following a coalesce on the `text_ad_landing_page`, `spotlight_landing_page`, or `click_uri` fields. For more details refer to [dbt_linkedin_source v0.10.0](https://github.com/fivetran/dbt_linkedin_source/releases/tag/v0.10.0) release notes. + - This change is in response to a [LinkedIn Ads API](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 either the `text_ad_landing_page` or `spotlight_landing_page` fields depending on the creative type. + +## Under the Hood +- Addition of the following consistency validation tests for the below mentioned models to be used during integration tests (only used by Fivetran maintainers): + - `ad_reporting__ad_report` + - `ad_reporting__url_report` + # dbt_ad_reporting v1.9.0 ## Under the Hood diff --git a/README.md b/README.md index 20640fe..0422dae 100644 --- a/README.md +++ b/README.md @@ -80,7 +80,7 @@ Include the following github package version in your `packages.yml` ```yaml packages: - package: fivetran/ad_reporting - version: [">=1.9.0", "<1.10.0"] # we recommend using ranges to capture non-breaking changes automatically + version: [">=1.10.0", "<1.11.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. @@ -598,10 +598,10 @@ packages: version: [">=0.9.0", "<0.10.0"] - package: fivetran/linkedin - version: [">=0.9.0", "<0.10.0"] + version: [">=0.10.0", "<0.11.0"] - package: fivetran/linkedin_source - version: [">=0.9.0", "<0.10.0"] + version: [">=0.10.0", "<0.11.0"] - package: fivetran/reddit_ads version: [">=0.2.0", "<0.3.0"] diff --git a/dbt_project.yml b/dbt_project.yml index 3c9d031..7f49c4b 100644 --- a/dbt_project.yml +++ b/dbt_project.yml @@ -1,5 +1,5 @@ name: 'ad_reporting' -version: '1.9.0' +version: '1.10.0' config-version: 2 diff --git a/docs/catalog.json b/docs/catalog.json index c5cffa7..acb419c 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.4", "generated_at": "2024-07-29T18:33:51.472917Z", "invocation_id": "a0a5b15e-aa7f-4333-9bae-f6be74a9a347", "env": {}}, "nodes": {"seed.ad_reporting_integration_tests.amazon_ads_ad_group_history_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_docs", "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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}}, "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_docs", "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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}}, "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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": "integer", "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": "ad_reporting_docs", "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}, "clicks": {"type": "integer", "index": 3, "name": "clicks", "comment": null}, "impressions": {"type": "integer", "index": 4, "name": "impressions", "comment": null}, "cost_in_local_currency": {"type": "integer", "index": 5, "name": "cost_in_local_currency", "comment": null}, "cost_in_usd": {"type": "integer", "index": 6, "name": "cost_in_usd", "comment": null}}, "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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": "ad_reporting_docs", "name": "linkedin_ad_creative_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}, "campaign_id": {"type": "integer", "index": 4, "name": "campaign_id", "comment": null}, "type": {"type": "text", "index": 5, "name": "type", "comment": null}, "version_tag": {"type": "integer", "index": 6, "name": "version_tag", "comment": null}, "status": {"type": "text", "index": 7, "name": "status", "comment": null}, "click_uri": {"type": "text", "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": "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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}}, "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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}}, "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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}}, "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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}, "clicks": {"type": "integer", "index": 13, "name": "clicks", "comment": null}, "impressions": {"type": "integer", "index": 14, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 15, "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.microsoft_ads_campaign_performance_daily_report_data"}, "seed.ad_reporting_integration_tests.microsoft_ads_keyword_history_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_docs", "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": "ad_reporting_docs", "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}}, "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": "ad_reporting_docs", "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}}, "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": "ad_reporting_docs", "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": "ad_reporting_docs", "name": "pinterest_ad_group_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_group_id": {"type": "bigint", "index": 1, "name": "ad_group_id", "comment": null}, "advertiser_id": {"type": "bigint", "index": 2, "name": "advertiser_id", "comment": null}, "date": {"type": "timestamp without time zone", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "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_daily_spend_cap": {"type": "integer", "index": 7, "name": "campaign_daily_spend_cap", "comment": null}, "campaign_id": {"type": "bigint", "index": 8, "name": "campaign_id", "comment": null}, "campaign_lifetime_spend_cap": {"type": "integer", "index": 9, "name": "campaign_lifetime_spend_cap", "comment": null}, "campaign_name": {"type": "text", "index": 10, "name": "campaign_name", "comment": null}, "campaign_status": {"type": "text", "index": 11, "name": "campaign_status", "comment": null}, "clickthrough_1": {"type": "integer", "index": 12, "name": "clickthrough_1", "comment": null}, "clickthrough_1_gross": {"type": "integer", "index": 13, "name": "clickthrough_1_gross", "comment": null}, "cpc_in_micro_dollar": {"type": "double precision", "index": 14, "name": "cpc_in_micro_dollar", "comment": null}, "cpm_in_micro_dollar": {"type": "double precision", "index": 15, "name": "cpm_in_micro_dollar", "comment": null}, "ctr": {"type": "double precision", "index": 16, "name": "ctr", "comment": null}, "ecpc_in_micro_dollar": {"type": "double precision", "index": 17, "name": "ecpc_in_micro_dollar", "comment": null}, "ecpm_in_micro_dollar": {"type": "double precision", "index": 18, "name": "ecpm_in_micro_dollar", "comment": null}, "ectr": {"type": "double precision", "index": 19, "name": "ectr", "comment": null}, "engagement_1": {"type": "integer", "index": 20, "name": "engagement_1", "comment": null}, "impression_1": {"type": "integer", "index": 21, "name": "impression_1", "comment": null}, "impression_1_gross": {"type": "integer", "index": 22, "name": "impression_1_gross", "comment": null}, "outbound_click_1": {"type": "integer", "index": 23, "name": "outbound_click_1", "comment": null}, "paid_impression": {"type": "integer", "index": 24, "name": "paid_impression", "comment": null}, "spend_in_micro_dollar": {"type": "integer", "index": 25, "name": "spend_in_micro_dollar", "comment": null}, "total_engagement": {"type": "integer", "index": 26, "name": "total_engagement", "comment": null}, "total_impression_frequency": {"type": "double precision", "index": 27, "name": "total_impression_frequency", "comment": null}, "total_impression_user": {"type": "integer", "index": 28, "name": "total_impression_user", "comment": null}}, "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": "ad_reporting_docs", "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": "ad_reporting_docs", "name": "pinterest_advertiser_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"advertiser_id": {"type": "bigint", "index": 1, "name": "advertiser_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}, "clickthrough_1": {"type": "integer", "index": 4, "name": "clickthrough_1", "comment": null}, "clickthrough_1_gross": {"type": "integer", "index": 5, "name": "clickthrough_1_gross", "comment": null}, "cpc_in_micro_dollar": {"type": "double precision", "index": 6, "name": "cpc_in_micro_dollar", "comment": null}, "cpm_in_micro_dollar": {"type": "double precision", "index": 7, "name": "cpm_in_micro_dollar", "comment": null}, "ctr": {"type": "double precision", "index": 8, "name": "ctr", "comment": null}, "ecpc_in_micro_dollar": {"type": "double precision", "index": 9, "name": "ecpc_in_micro_dollar", "comment": null}, "ecpm_in_micro_dollar": {"type": "double precision", "index": 10, "name": "ecpm_in_micro_dollar", "comment": null}, "ectr": {"type": "double precision", "index": 11, "name": "ectr", "comment": null}, "engagement_1": {"type": "integer", "index": 12, "name": "engagement_1", "comment": null}, "impression_1": {"type": "integer", "index": 13, "name": "impression_1", "comment": null}, "impression_1_gross": {"type": "integer", "index": 14, "name": "impression_1_gross", "comment": null}, "outbound_click_1": {"type": "integer", "index": 15, "name": "outbound_click_1", "comment": null}, "paid_impression": {"type": "integer", "index": 16, "name": "paid_impression", "comment": null}, "spend_in_micro_dollar": {"type": "integer", "index": 17, "name": "spend_in_micro_dollar", "comment": null}, "total_engagement": {"type": "integer", "index": 18, "name": "total_engagement", "comment": null}, "total_impression_frequency": {"type": "double precision", "index": 19, "name": "total_impression_frequency", "comment": null}, "total_impression_user": {"type": "integer", "index": 20, "name": "total_impression_user", "comment": null}}, "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": "ad_reporting_docs", "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": "ad_reporting_docs", "name": "pinterest_campaign_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"advertiser_id": {"type": "bigint", "index": 1, "name": "advertiser_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 2, "name": "campaign_id", "comment": null}, "date": {"type": "timestamp without time zone", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "campaign_daily_spend_cap": {"type": "integer", "index": 5, "name": "campaign_daily_spend_cap", "comment": null}, "campaign_lifetime_spend_cap": {"type": "integer", "index": 6, "name": "campaign_lifetime_spend_cap", "comment": null}, "campaign_name": {"type": "text", "index": 7, "name": "campaign_name", "comment": null}, "campaign_status": {"type": "text", "index": 8, "name": "campaign_status", "comment": null}, "clickthrough_1": {"type": "integer", "index": 9, "name": "clickthrough_1", "comment": null}, "clickthrough_1_gross": {"type": "integer", "index": 10, "name": "clickthrough_1_gross", "comment": null}, "cpc_in_micro_dollar": {"type": "double precision", "index": 11, "name": "cpc_in_micro_dollar", "comment": null}, "cpm_in_micro_dollar": {"type": "double precision", "index": 12, "name": "cpm_in_micro_dollar", "comment": null}, "ctr": {"type": "double precision", "index": 13, "name": "ctr", "comment": null}, "ecpc_in_micro_dollar": {"type": "double precision", "index": 14, "name": "ecpc_in_micro_dollar", "comment": null}, "ecpm_in_micro_dollar": {"type": "double precision", "index": 15, "name": "ecpm_in_micro_dollar", "comment": null}, "ectr": {"type": "double precision", "index": 16, "name": "ectr", "comment": null}, "engagement_1": {"type": "integer", "index": 17, "name": "engagement_1", "comment": null}, "impression_1": {"type": "integer", "index": 18, "name": "impression_1", "comment": null}, "impression_1_gross": {"type": "integer", "index": 19, "name": "impression_1_gross", "comment": null}, "outbound_click_1": {"type": "integer", "index": 20, "name": "outbound_click_1", "comment": null}, "paid_impression": {"type": "integer", "index": 21, "name": "paid_impression", "comment": null}, "spend_in_micro_dollar": {"type": "integer", "index": 22, "name": "spend_in_micro_dollar", "comment": null}, "total_engagement": {"type": "integer", "index": 23, "name": "total_engagement", "comment": null}, "total_impression_frequency": {"type": "double precision", "index": 24, "name": "total_impression_frequency", "comment": null}, "total_impression_user": {"type": "integer", "index": 25, "name": "total_impression_user", "comment": null}}, "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": "ad_reporting_docs", "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": "ad_reporting_docs", "name": "pinterest_keyword_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_group_id": {"type": "bigint", "index": 1, "name": "ad_group_id", "comment": null}, "advertiser_id": {"type": "bigint", "index": 2, "name": "advertiser_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 3, "name": "campaign_id", "comment": null}, "date": {"type": "timestamp without time zone", "index": 4, "name": "date", "comment": null}, "keyword_id": {"type": "bigint", "index": 5, "name": "keyword_id", "comment": null}, "pin_id": {"type": "bigint", "index": 6, "name": "pin_id", "comment": null}, "pin_promotion_id": {"type": "bigint", "index": 7, "name": "pin_promotion_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 8, "name": "_fivetran_synced", "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}, "campaign_daily_spend_cap": {"type": "integer", "index": 11, "name": "campaign_daily_spend_cap", "comment": null}, "campaign_lifetime_spend_cap": {"type": "integer", "index": 12, "name": "campaign_lifetime_spend_cap", "comment": null}, "campaign_name": {"type": "text", "index": 13, "name": "campaign_name", "comment": null}, "campaign_status": {"type": "text", "index": 14, "name": "campaign_status", "comment": null}, "clickthrough_1": {"type": "integer", "index": 15, "name": "clickthrough_1", "comment": null}, "clickthrough_1_gross": {"type": "integer", "index": 16, "name": "clickthrough_1_gross", "comment": null}, "cpc_in_micro_dollar": {"type": "integer", "index": 17, "name": "cpc_in_micro_dollar", "comment": null}, "cpm_in_micro_dollar": {"type": "double precision", "index": 18, "name": "cpm_in_micro_dollar", "comment": null}, "ctr": {"type": "integer", "index": 19, "name": "ctr", "comment": null}, "ecpc_in_micro_dollar": {"type": "integer", "index": 20, "name": "ecpc_in_micro_dollar", "comment": null}, "ecpm_in_micro_dollar": {"type": "double precision", "index": 21, "name": "ecpm_in_micro_dollar", "comment": null}, "ectr": {"type": "integer", "index": 22, "name": "ectr", "comment": null}, "engagement_1": {"type": "integer", "index": 23, "name": "engagement_1", "comment": null}, "impression_1": {"type": "integer", "index": 24, "name": "impression_1", "comment": null}, "impression_1_gross": {"type": "integer", "index": 25, "name": "impression_1_gross", "comment": null}, "outbound_click_1": {"type": "integer", "index": 26, "name": "outbound_click_1", "comment": null}, "paid_impression": {"type": "integer", "index": 27, "name": "paid_impression", "comment": null}, "pin_promotion_name": {"type": "text", "index": 28, "name": "pin_promotion_name", "comment": null}, "pin_promotion_status": {"type": "text", "index": 29, "name": "pin_promotion_status", "comment": null}, "spend_in_micro_dollar": {"type": "integer", "index": 30, "name": "spend_in_micro_dollar", "comment": null}, "targeting_type": {"type": "text", "index": 31, "name": "targeting_type", "comment": null}, "targeting_value": {"type": "text", "index": 32, "name": "targeting_value", "comment": null}, "total_engagement": {"type": "integer", "index": 33, "name": "total_engagement", "comment": null}}, "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": "ad_reporting_docs", "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": "ad_reporting_docs", "name": "pinterest_pin_promotion_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date": {"type": "timestamp without time zone", "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": "text", "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}}, "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_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_docs", "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": "ad_reporting_docs", "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_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_docs", "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_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_docs", "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_docs", "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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}}, "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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": "integer", "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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": "integer", "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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}, "real_time_conversion": {"type": "integer", "index": 4, "name": "real_time_conversion", "comment": null}, "cpc": {"type": "double precision", "index": 5, "name": "cpc", "comment": null}, "video_play_actions": {"type": "integer", "index": 6, "name": "video_play_actions", "comment": null}, "conversion_rate": {"type": "integer", "index": 7, "name": "conversion_rate", "comment": null}, "video_views_p_75": {"type": "integer", "index": 8, "name": "video_views_p_75", "comment": null}, "result": {"type": "integer", "index": 9, "name": "result", "comment": null}, "video_views_p_50": {"type": "integer", "index": 10, "name": "video_views_p_50", "comment": null}, "impressions": {"type": "integer", "index": 11, "name": "impressions", "comment": null}, "comments": {"type": "integer", "index": 12, "name": "comments", "comment": null}, "real_time_cost_per_result": {"type": "double precision", "index": 13, "name": "real_time_cost_per_result", "comment": null}, "conversion": {"type": "integer", "index": 14, "name": "conversion", "comment": null}, "real_time_result": {"type": "integer", "index": 15, "name": "real_time_result", "comment": null}, "video_views_p_100": {"type": "integer", "index": 16, "name": "video_views_p_100", "comment": null}, "shares": {"type": "integer", "index": 17, "name": "shares", "comment": null}, "real_time_conversion_rate": {"type": "integer", "index": 18, "name": "real_time_conversion_rate", "comment": null}, "cost_per_secondary_goal_result": {"type": "text", "index": 19, "name": "cost_per_secondary_goal_result", "comment": null}, "secondary_goal_result_rate": {"type": "text", "index": 20, "name": "secondary_goal_result_rate", "comment": null}, "clicks": {"type": "integer", "index": 21, "name": "clicks", "comment": null}, "cost_per_1000_reached": {"type": "integer", "index": 22, "name": "cost_per_1000_reached", "comment": null}, "video_views_p_25": {"type": "integer", "index": 23, "name": "video_views_p_25", "comment": null}, "reach": {"type": "integer", "index": 24, "name": "reach", "comment": null}, "real_time_cost_per_conversion": {"type": "double precision", "index": 25, "name": "real_time_cost_per_conversion", "comment": null}, "profile_visits_rate": {"type": "integer", "index": 26, "name": "profile_visits_rate", "comment": null}, "average_video_play": {"type": "double precision", "index": 27, "name": "average_video_play", "comment": null}, "profile_visits": {"type": "integer", "index": 28, "name": "profile_visits", "comment": null}, "cpm": {"type": "double precision", "index": 29, "name": "cpm", "comment": null}, "ctr": {"type": "double precision", "index": 30, "name": "ctr", "comment": null}, "video_watched_2_s": {"type": "integer", "index": 31, "name": "video_watched_2_s", "comment": null}, "follows": {"type": "integer", "index": 32, "name": "follows", "comment": null}, "result_rate": {"type": "integer", "index": 33, "name": "result_rate", "comment": null}, "video_watched_6_s": {"type": "integer", "index": 34, "name": "video_watched_6_s", "comment": null}, "secondary_goal_result": {"type": "text", "index": 35, "name": "secondary_goal_result", "comment": null}, "cost_per_result": {"type": "double precision", "index": 36, "name": "cost_per_result", "comment": null}, "average_video_play_per_user": {"type": "integer", "index": 37, "name": "average_video_play_per_user", "comment": null}, "real_time_result_rate": {"type": "integer", "index": 38, "name": "real_time_result_rate", "comment": null}, "spend": {"type": "double precision", "index": 39, "name": "spend", "comment": null}, "likes": {"type": "integer", "index": 40, "name": "likes", "comment": null}, "_fivetran_synced": {"type": "text", "index": 41, "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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}, "real_time_conversion": {"type": "integer", "index": 4, "name": "real_time_conversion", "comment": null}, "cpc": {"type": "double precision", "index": 5, "name": "cpc", "comment": null}, "video_play_actions": {"type": "integer", "index": 6, "name": "video_play_actions", "comment": null}, "conversion_rate": {"type": "integer", "index": 7, "name": "conversion_rate", "comment": null}, "video_views_p_75": {"type": "integer", "index": 8, "name": "video_views_p_75", "comment": null}, "result": {"type": "integer", "index": 9, "name": "result", "comment": null}, "video_views_p_50": {"type": "integer", "index": 10, "name": "video_views_p_50", "comment": null}, "impressions": {"type": "integer", "index": 11, "name": "impressions", "comment": null}, "comments": {"type": "integer", "index": 12, "name": "comments", "comment": null}, "real_time_cost_per_result": {"type": "double precision", "index": 13, "name": "real_time_cost_per_result", "comment": null}, "conversion": {"type": "integer", "index": 14, "name": "conversion", "comment": null}, "real_time_result": {"type": "integer", "index": 15, "name": "real_time_result", "comment": null}, "video_views_p_100": {"type": "integer", "index": 16, "name": "video_views_p_100", "comment": null}, "shares": {"type": "integer", "index": 17, "name": "shares", "comment": null}, "real_time_conversion_rate": {"type": "double precision", "index": 18, "name": "real_time_conversion_rate", "comment": null}, "cost_per_secondary_goal_result": {"type": "text", "index": 19, "name": "cost_per_secondary_goal_result", "comment": null}, "secondary_goal_result_rate": {"type": "text", "index": 20, "name": "secondary_goal_result_rate", "comment": null}, "clicks": {"type": "integer", "index": 21, "name": "clicks", "comment": null}, "cost_per_1000_reached": {"type": "double precision", "index": 22, "name": "cost_per_1000_reached", "comment": null}, "video_views_p_25": {"type": "integer", "index": 23, "name": "video_views_p_25", "comment": null}, "reach": {"type": "integer", "index": 24, "name": "reach", "comment": null}, "real_time_cost_per_conversion": {"type": "double precision", "index": 25, "name": "real_time_cost_per_conversion", "comment": null}, "profile_visits_rate": {"type": "integer", "index": 26, "name": "profile_visits_rate", "comment": null}, "average_video_play": {"type": "double precision", "index": 27, "name": "average_video_play", "comment": null}, "profile_visits": {"type": "integer", "index": 28, "name": "profile_visits", "comment": null}, "cpm": {"type": "double precision", "index": 29, "name": "cpm", "comment": null}, "ctr": {"type": "double precision", "index": 30, "name": "ctr", "comment": null}, "video_watched_2_s": {"type": "integer", "index": 31, "name": "video_watched_2_s", "comment": null}, "follows": {"type": "integer", "index": 32, "name": "follows", "comment": null}, "result_rate": {"type": "double precision", "index": 33, "name": "result_rate", "comment": null}, "video_watched_6_s": {"type": "integer", "index": 34, "name": "video_watched_6_s", "comment": null}, "secondary_goal_result": {"type": "text", "index": 35, "name": "secondary_goal_result", "comment": null}, "cost_per_result": {"type": "double precision", "index": 36, "name": "cost_per_result", "comment": null}, "average_video_play_per_user": {"type": "double precision", "index": 37, "name": "average_video_play_per_user", "comment": null}, "real_time_result_rate": {"type": "double precision", "index": 38, "name": "real_time_result_rate", "comment": null}, "spend": {"type": "double precision", "index": 39, "name": "spend", "comment": null}, "likes": {"type": "integer", "index": 40, "name": "likes", "comment": null}, "_fivetran_synced": {"type": "text", "index": 41, "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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}, "real_time_conversion": {"type": "integer", "index": 4, "name": "real_time_conversion", "comment": null}, "cpc": {"type": "double precision", "index": 5, "name": "cpc", "comment": null}, "video_play_actions": {"type": "integer", "index": 6, "name": "video_play_actions", "comment": null}, "conversion_rate": {"type": "integer", "index": 7, "name": "conversion_rate", "comment": null}, "video_views_p_75": {"type": "integer", "index": 8, "name": "video_views_p_75", "comment": null}, "result": {"type": "integer", "index": 9, "name": "result", "comment": null}, "video_views_p_50": {"type": "integer", "index": 10, "name": "video_views_p_50", "comment": null}, "impressions": {"type": "integer", "index": 11, "name": "impressions", "comment": null}, "comments": {"type": "integer", "index": 12, "name": "comments", "comment": null}, "real_time_cost_per_result": {"type": "double precision", "index": 13, "name": "real_time_cost_per_result", "comment": null}, "conversion": {"type": "integer", "index": 14, "name": "conversion", "comment": null}, "real_time_result": {"type": "integer", "index": 15, "name": "real_time_result", "comment": null}, "video_views_p_100": {"type": "integer", "index": 16, "name": "video_views_p_100", "comment": null}, "shares": {"type": "integer", "index": 17, "name": "shares", "comment": null}, "real_time_conversion_rate": {"type": "double precision", "index": 18, "name": "real_time_conversion_rate", "comment": null}, "cost_per_secondary_goal_result": {"type": "text", "index": 19, "name": "cost_per_secondary_goal_result", "comment": null}, "secondary_goal_result_rate": {"type": "text", "index": 20, "name": "secondary_goal_result_rate", "comment": null}, "clicks": {"type": "integer", "index": 21, "name": "clicks", "comment": null}, "cost_per_1000_reached": {"type": "double precision", "index": 22, "name": "cost_per_1000_reached", "comment": null}, "video_views_p_25": {"type": "integer", "index": 23, "name": "video_views_p_25", "comment": null}, "reach": {"type": "integer", "index": 24, "name": "reach", "comment": null}, "real_time_cost_per_conversion": {"type": "double precision", "index": 25, "name": "real_time_cost_per_conversion", "comment": null}, "profile_visits_rate": {"type": "integer", "index": 26, "name": "profile_visits_rate", "comment": null}, "average_video_play": {"type": "double precision", "index": 27, "name": "average_video_play", "comment": null}, "profile_visits": {"type": "integer", "index": 28, "name": "profile_visits", "comment": null}, "cpm": {"type": "double precision", "index": 29, "name": "cpm", "comment": null}, "ctr": {"type": "double precision", "index": 30, "name": "ctr", "comment": null}, "video_watched_2_s": {"type": "integer", "index": 31, "name": "video_watched_2_s", "comment": null}, "follows": {"type": "integer", "index": 32, "name": "follows", "comment": null}, "result_rate": {"type": "double precision", "index": 33, "name": "result_rate", "comment": null}, "video_watched_6_s": {"type": "integer", "index": 34, "name": "video_watched_6_s", "comment": null}, "secondary_goal_result": {"type": "text", "index": 35, "name": "secondary_goal_result", "comment": null}, "cost_per_result": {"type": "double precision", "index": 36, "name": "cost_per_result", "comment": null}, "average_video_play_per_user": {"type": "double precision", "index": 37, "name": "average_video_play_per_user", "comment": null}, "real_time_result_rate": {"type": "double precision", "index": 38, "name": "real_time_result_rate", "comment": null}, "spend": {"type": "double precision", "index": 39, "name": "spend", "comment": null}, "likes": {"type": "integer", "index": 40, "name": "likes", "comment": null}, "_fivetran_synced": {"type": "text", "index": 41, "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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": "ad_reporting_docs_ad_reporting", "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}}, "stats": {"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": "ad_reporting_docs_ad_reporting", "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}}, "stats": {"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": "ad_reporting_docs_ad_reporting", "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}}, "stats": {"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": "ad_reporting_docs_ad_reporting", "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}}, "stats": {"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": "ad_reporting_docs_ad_reporting", "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}}, "stats": {"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": "ad_reporting_docs_ad_reporting", "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}}, "stats": {"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": "ad_reporting_docs_ad_reporting", "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}}, "stats": {"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.ad_reporting.metricflow_time_spine": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_docs_ad_reporting", "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.amazon_ads.amazon_ads__account_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_docs_amazon_ads", "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}}, "stats": {"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": "ad_reporting_docs_amazon_ads", "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}}, "stats": {"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": "ad_reporting_docs_amazon_ads", "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": "text", "index": 16, "name": "advertised_asin", "comment": null}, "advertised_sku": {"type": "text", "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}}, "stats": {"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": "ad_reporting_docs_amazon_ads", "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}}, "stats": {"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": "ad_reporting_docs_amazon_ads", "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}}, "stats": {"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": "ad_reporting_docs_amazon_ads", "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}}, "stats": {"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": "ad_reporting_docs_amazon_ads", "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}}, "stats": {"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.amazon_ads.int_amazon_ads__portfolio_history": {"metadata": {"type": "VIEW", "schema": "ad_reporting_docs_amazon_ads", "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.amazon_ads_source.stg_amazon_ads__ad_group_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_docs_amazon_ads_source", "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": "ad_reporting_docs_amazon_ads_source", "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": "ad_reporting_docs_amazon_ads_source", "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}}, "stats": {"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": "ad_reporting_docs_amazon_ads_source", "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": "ad_reporting_docs_amazon_ads_source", "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": "text", "index": 4, "name": "advertised_asin", "comment": null}, "advertised_sku": {"type": "text", "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}}, "stats": {"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": "ad_reporting_docs_amazon_ads_source", "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": "ad_reporting_docs_amazon_ads_source", "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": "ad_reporting_docs_amazon_ads_source", "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": "ad_reporting_docs_amazon_ads_source", "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}}, "stats": {"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": "ad_reporting_docs_amazon_ads_source", "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}}, "stats": {"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": "ad_reporting_docs_amazon_ads_source", "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": "ad_reporting_docs_amazon_ads_source", "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": "ad_reporting_docs_amazon_ads_source", "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": "ad_reporting_docs_amazon_ads_source", "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": "ad_reporting_docs_amazon_ads_source", "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": "ad_reporting_docs_amazon_ads_source", "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": "ad_reporting_docs_amazon_ads_source", "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": "ad_reporting_docs_amazon_ads_source", "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": "ad_reporting_docs_amazon_ads_source", "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}}, "stats": {"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": "ad_reporting_docs_amazon_ads_source", "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": "ad_reporting_docs_amazon_ads_source", "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}}, "stats": {"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": "ad_reporting_docs_amazon_ads_source", "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.apple_search_ads__ad_group_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_docs_apple_search_ads", "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}, "impressions": {"type": "bigint", "index": 17, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 18, "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": "ad_reporting_docs_apple_search_ads", "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}, "impressions": {"type": "bigint", "index": 17, "name": "impressions", "comment": null}, "spend": {"type": "numeric", "index": 18, "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": "ad_reporting_docs_apple_search_ads", "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}, "impressions": {"type": "bigint", "index": 15, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 16, "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": "ad_reporting_docs_apple_search_ads", "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}, "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__keyword_report"}, "model.apple_search_ads.apple_search_ads__organization_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_docs_apple_search_ads", "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}, "impressions": {"type": "bigint", "index": 10, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 11, "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": "ad_reporting_docs_apple_search_ads", "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}, "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__search_term_report"}, "model.apple_search_ads_source.stg_apple_search_ads__ad_group_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_docs_apple_search_ads_source", "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": "ad_reporting_docs_apple_search_ads_source", "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": "ad_reporting_docs_apple_search_ads_source", "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}, "impressions": {"type": "integer", "index": 4, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 5, "name": "spend", "comment": null}, "currency": {"type": "text", "index": 6, "name": "currency", "comment": null}, "new_downloads": {"type": "integer", "index": 7, "name": "new_downloads", "comment": null}, "redownloads": {"type": "integer", "index": 8, "name": "redownloads", "comment": null}, "taps": {"type": "integer", "index": 9, "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": "ad_reporting_docs_apple_search_ads_source", "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": "ad_reporting_docs_apple_search_ads_source", "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": "ad_reporting_docs_apple_search_ads_source", "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": "ad_reporting_docs_apple_search_ads_source", "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}, "impressions": {"type": "integer", "index": 6, "name": "impressions", "comment": null}, "spend": {"type": "numeric(28,6)", "index": 7, "name": "spend", "comment": null}, "currency": {"type": "text", "index": 8, "name": "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"}, "model.apple_search_ads_source.stg_apple_search_ads__ad_report_tmp": {"metadata": {"type": "VIEW", "schema": "ad_reporting_docs_apple_search_ads_source", "name": "stg_apple_search_ads__ad_report_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_dbt_source_relation": {"type": "text", "index": 1, "name": "_dbt_source_relation", "comment": null}}, "stats": {"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": "ad_reporting_docs_apple_search_ads_source", "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": "ad_reporting_docs_apple_search_ads_source", "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": "ad_reporting_docs_apple_search_ads_source", "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}, "impressions": {"type": "integer", "index": 4, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 5, "name": "spend", "comment": null}, "currency": {"type": "text", "index": 6, "name": "currency", "comment": null}, "new_downloads": {"type": "integer", "index": 7, "name": "new_downloads", "comment": null}, "redownloads": {"type": "integer", "index": 8, "name": "redownloads", "comment": null}, "taps": {"type": "integer", "index": 9, "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": "ad_reporting_docs_apple_search_ads_source", "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": "ad_reporting_docs_apple_search_ads_source", "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": "ad_reporting_docs_apple_search_ads_source", "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": "ad_reporting_docs_apple_search_ads_source", "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}, "impressions": {"type": "integer", "index": 4, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 5, "name": "spend", "comment": null}, "currency": {"type": "text", "index": 6, "name": "currency", "comment": null}, "new_downloads": {"type": "integer", "index": 7, "name": "new_downloads", "comment": null}, "redownloads": {"type": "integer", "index": 8, "name": "redownloads", "comment": null}, "taps": {"type": "integer", "index": 9, "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": "ad_reporting_docs_apple_search_ads_source", "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": "ad_reporting_docs_apple_search_ads_source", "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": "ad_reporting_docs_apple_search_ads_source", "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": "ad_reporting_docs_apple_search_ads_source", "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}, "impressions": {"type": "integer", "index": 17, "name": "impressions", "comment": null}, "taps": {"type": "integer", "index": 18, "name": "taps", "comment": null}, "new_downloads": {"type": "integer", "index": 19, "name": "new_downloads", "comment": null}, "redownloads": {"type": "integer", "index": 20, "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": "ad_reporting_docs_apple_search_ads_source", "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.facebook_ads__account_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_docs_facebook_ads", "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}}, "stats": {"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": "ad_reporting_docs_facebook_ads", "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}, "clicks": {"type": "bigint", "index": 11, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 12, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 13, "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.facebook_ads__ad_report"}, "model.facebook_ads.facebook_ads__ad_set_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_docs_facebook_ads", "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}, "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}}, "stats": {"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": "ad_reporting_docs_facebook_ads", "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}}, "stats": {"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": "ad_reporting_docs_facebook_ads", "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}}, "stats": {"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": "ad_reporting_docs_facebook_ads", "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.facebook_ads.int_facebook_ads__creative_history": {"metadata": {"type": "VIEW", "schema": "ad_reporting_docs_facebook_ads", "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.facebook_ads_source.stg_facebook_ads__account_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_docs_facebook_ads_source", "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": "ad_reporting_docs_facebook_ads_source", "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": "ad_reporting_docs_facebook_ads_source", "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}, "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.facebook_ads_source.stg_facebook_ads__ad_history"}, "model.facebook_ads_source.stg_facebook_ads__ad_history_tmp": {"metadata": {"type": "VIEW", "schema": "ad_reporting_docs_facebook_ads_source", "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": "ad_reporting_docs_facebook_ads_source", "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}, "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__ad_set_history"}, "model.facebook_ads_source.stg_facebook_ads__ad_set_history_tmp": {"metadata": {"type": "VIEW", "schema": "ad_reporting_docs_facebook_ads_source", "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": "ad_reporting_docs_facebook_ads_source", "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_tmp": {"metadata": {"type": "VIEW", "schema": "ad_reporting_docs_facebook_ads_source", "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": "ad_reporting_docs_facebook_ads_source", "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": "ad_reporting_docs_facebook_ads_source", "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": "ad_reporting_docs_facebook_ads_source", "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": "ad_reporting_docs_facebook_ads_source", "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.google_ads__account_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_docs_google_ads", "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": "ad_reporting_docs_google_ads", "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": "ad_reporting_docs_google_ads", "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": "bigint", "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": "ad_reporting_docs_google_ads", "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": "ad_reporting_docs_google_ads", "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": "ad_reporting_docs_google_ads", "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": "bigint", "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.google_ads_source.stg_google_ads__account_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_docs_google_ads_source", "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": "ad_reporting_docs_google_ads_source", "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": "ad_reporting_docs_google_ads_source", "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": "ad_reporting_docs_google_ads_source", "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": "ad_reporting_docs_google_ads_source", "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": "ad_reporting_docs_google_ads_source", "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": "ad_reporting_docs_google_ads_source", "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": "ad_reporting_docs_google_ads_source", "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": "ad_reporting_docs_google_ads_source", "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": "ad_reporting_docs_google_ads_source", "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": "ad_reporting_docs_google_ads_source", "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": "ad_reporting_docs_google_ads_source", "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": "ad_reporting_docs_google_ads_source", "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": "integer", "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": "ad_reporting_docs_google_ads_source", "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}}, "stats": {"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": "ad_reporting_docs_google_ads_source", "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": "ad_reporting_docs_google_ads_source", "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": "ad_reporting_docs_google_ads_source", "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": "ad_reporting_docs_google_ads_source", "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": "ad_reporting_docs_google_ads_source", "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": "ad_reporting_docs_google_ads_source", "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.linkedin_ads__account_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_docs_linkedin_ads", "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": "ad_reporting_docs_linkedin_ads", "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": "ad_reporting_docs_linkedin_ads", "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": "ad_reporting_docs_linkedin_ads", "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}, "creative_status": {"type": "text", "index": 11, "name": "creative_status", "comment": null}, "campaign_status": {"type": "text", "index": 12, "name": "campaign_status", "comment": null}, "campaign_group_status": {"type": "text", "index": 13, "name": "campaign_group_status", "comment": null}, "currency": {"type": "text", "index": 14, "name": "currency", "comment": null}, "last_modified_at": {"type": "timestamp without time zone", "index": 15, "name": "last_modified_at", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 16, "name": "created_at", "comment": null}, "total_conversions": {"type": "numeric", "index": 17, "name": "total_conversions", "comment": null}, "clicks": {"type": "bigint", "index": 18, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 19, "name": "impressions", "comment": null}, "cost": {"type": "bigint", "index": 20, "name": "cost", "comment": null}, "conversion_value_in_local_currency": {"type": "double precision", "index": 21, "name": "conversion_value_in_local_currency", "comment": null}, "external_website_conversions": {"type": "numeric", "index": 22, "name": "external_website_conversions", "comment": null}, "one_click_leads": {"type": "numeric", "index": 23, "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": "ad_reporting_docs_linkedin_ads", "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}, "base_url": {"type": "text", "index": 4, "name": "base_url", "comment": null}, "url_host": {"type": "text", "index": 5, "name": "url_host", "comment": null}, "url_path": {"type": "text", "index": 6, "name": "url_path", "comment": null}, "utm_source": {"type": "text", "index": 7, "name": "utm_source", "comment": null}, "utm_medium": {"type": "text", "index": 8, "name": "utm_medium", "comment": null}, "utm_campaign": {"type": "text", "index": 9, "name": "utm_campaign", "comment": null}, "utm_content": {"type": "text", "index": 10, "name": "utm_content", "comment": null}, "utm_term": {"type": "text", "index": 11, "name": "utm_term", "comment": null}, "creative_id": {"type": "integer", "index": 12, "name": "creative_id", "comment": null}, "campaign_id": {"type": "integer", "index": 13, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "text", "index": 14, "name": "campaign_name", "comment": null}, "campaign_group_id": {"type": "integer", "index": 15, "name": "campaign_group_id", "comment": null}, "campaign_group_name": {"type": "text", "index": 16, "name": "campaign_group_name", "comment": null}, "account_id": {"type": "integer", "index": 17, "name": "account_id", "comment": null}, "account_name": {"type": "text", "index": 18, "name": "account_name", "comment": null}, "currency": {"type": "text", "index": 19, "name": "currency", "comment": null}, "total_conversions": {"type": "numeric", "index": 20, "name": "total_conversions", "comment": null}, "clicks": {"type": "bigint", "index": 21, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 22, "name": "impressions", "comment": null}, "cost": {"type": "bigint", "index": 23, "name": "cost", "comment": null}, "conversion_value_in_local_currency": {"type": "double precision", "index": 24, "name": "conversion_value_in_local_currency", "comment": null}, "external_website_conversions": {"type": "numeric", "index": 25, "name": "external_website_conversions", "comment": null}, "one_click_leads": {"type": "numeric", "index": 26, "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.linkedin_source.stg_linkedin_ads__account_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_docs_linkedin_ads_source", "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": "ad_reporting_docs_linkedin_ads_source", "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": "ad_reporting_docs_linkedin_ads_source", "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": "ad_reporting_docs_linkedin_ads_source", "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": "integer", "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": "ad_reporting_docs_linkedin_ads_source", "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": "ad_reporting_docs_linkedin_ads_source", "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}, "clicks": {"type": "integer", "index": 3, "name": "clicks", "comment": null}, "impressions": {"type": "integer", "index": 4, "name": "impressions", "comment": null}, "cost_in_local_currency": {"type": "integer", "index": 5, "name": "cost_in_local_currency", "comment": null}, "cost_in_usd": {"type": "integer", "index": 6, "name": "cost_in_usd", "comment": null}}, "stats": {"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": "ad_reporting_docs_linkedin_ads_source", "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": "ad_reporting_docs_linkedin_ads_source", "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": "ad_reporting_docs_linkedin_ads_source", "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": "ad_reporting_docs_linkedin_ads_source", "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": "ad_reporting_docs_linkedin_ads_source", "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}, "is_latest_version": {"type": "boolean", "index": 8, "name": "is_latest_version", "comment": null}, "base_url": {"type": "text", "index": 9, "name": "base_url", "comment": null}, "url_host": {"type": "text", "index": 10, "name": "url_host", "comment": null}, "url_path": {"type": "text", "index": 11, "name": "url_path", "comment": null}, "utm_source": {"type": "text", "index": 12, "name": "utm_source", "comment": null}, "utm_medium": {"type": "text", "index": 13, "name": "utm_medium", "comment": null}, "utm_campaign": {"type": "text", "index": 14, "name": "utm_campaign", "comment": null}, "utm_content": {"type": "text", "index": 15, "name": "utm_content", "comment": null}, "utm_term": {"type": "text", "index": 16, "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": "ad_reporting_docs_linkedin_ads_source", "name": "stg_linkedin_ads__creative_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}, "campaign_id": {"type": "integer", "index": 4, "name": "campaign_id", "comment": null}, "type": {"type": "text", "index": 5, "name": "type", "comment": null}, "version_tag": {"type": "integer", "index": 6, "name": "version_tag", "comment": null}, "status": {"type": "text", "index": 7, "name": "status", "comment": null}, "click_uri": {"type": "text", "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.microsoft_ads__account_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_docs_microsoft_ads", "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}}, "stats": {"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": "ad_reporting_docs_microsoft_ads", "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}}, "stats": {"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": "ad_reporting_docs_microsoft_ads", "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}}, "stats": {"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": "ad_reporting_docs_microsoft_ads", "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}}, "stats": {"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": "ad_reporting_docs_microsoft_ads", "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}}, "stats": {"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": "ad_reporting_docs_microsoft_ads", "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}}, "stats": {"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": "ad_reporting_docs_microsoft_ads", "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}}, "stats": {"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.microsoft_ads_source.stg_microsoft_ads__account_daily_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_docs_microsoft_ads_source", "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}}, "stats": {"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": "ad_reporting_docs_microsoft_ads_source", "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}}, "stats": {"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": "ad_reporting_docs_microsoft_ads_source", "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": "ad_reporting_docs_microsoft_ads_source", "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": "ad_reporting_docs_microsoft_ads_source", "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}}, "stats": {"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": "ad_reporting_docs_microsoft_ads_source", "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}}, "stats": {"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": "ad_reporting_docs_microsoft_ads_source", "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}}, "stats": {"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": "ad_reporting_docs_microsoft_ads_source", "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}}, "stats": {"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": "ad_reporting_docs_microsoft_ads_source", "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": "ad_reporting_docs_microsoft_ads_source", "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": "ad_reporting_docs_microsoft_ads_source", "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": "ad_reporting_docs_microsoft_ads_source", "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": "ad_reporting_docs_microsoft_ads_source", "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}}, "stats": {"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": "ad_reporting_docs_microsoft_ads_source", "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}, "clicks": {"type": "integer", "index": 13, "name": "clicks", "comment": null}, "impressions": {"type": "integer", "index": 14, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 15, "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.microsoft_ads_source.stg_microsoft_ads__campaign_daily_report_tmp"}, "model.microsoft_ads_source.stg_microsoft_ads__campaign_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_docs_microsoft_ads_source", "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": "ad_reporting_docs_microsoft_ads_source", "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": "ad_reporting_docs_microsoft_ads_source", "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}}, "stats": {"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": "ad_reporting_docs_microsoft_ads_source", "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}}, "stats": {"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": "ad_reporting_docs_microsoft_ads_source", "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": "ad_reporting_docs_microsoft_ads_source", "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": "ad_reporting_docs_microsoft_ads_source", "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}}, "stats": {"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": "ad_reporting_docs_microsoft_ads_source", "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}}, "stats": {"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.pinterest_ads__ad_group_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_docs_pinterest", "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 without time zone", "index": 2, "name": "date_day", "comment": null}, "advertiser_name": {"type": "text", "index": 3, "name": "advertiser_name", "comment": null}, "advertiser_id": {"type": "bigint", "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": "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}, "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}}, "stats": {"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": "ad_reporting_docs_pinterest", "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 without time zone", "index": 2, "name": "date_day", "comment": null}, "advertiser_name": {"type": "text", "index": 3, "name": "advertiser_name", "comment": null}, "advertiser_id": {"type": "bigint", "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}}, "stats": {"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": "ad_reporting_docs_pinterest", "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 without time zone", "index": 2, "name": "date_day", "comment": null}, "advertiser_name": {"type": "text", "index": 3, "name": "advertiser_name", "comment": null}, "advertiser_id": {"type": "bigint", "index": 4, "name": "advertiser_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_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}}, "stats": {"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": "ad_reporting_docs_pinterest", "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 without time zone", "index": 2, "name": "date_day", "comment": null}, "advertiser_name": {"type": "text", "index": 3, "name": "advertiser_name", "comment": null}, "advertiser_id": {"type": "bigint", "index": 4, "name": "advertiser_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}, "keyword_id": {"type": "bigint", "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}}, "stats": {"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": "ad_reporting_docs_pinterest", "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 without time zone", "index": 2, "name": "date_day", "comment": null}, "advertiser_id": {"type": "bigint", "index": 3, "name": "advertiser_id", "comment": null}, "advertiser_name": {"type": "text", "index": 4, "name": "advertiser_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}, "campaign_status": {"type": "text", "index": 7, "name": "campaign_status", "comment": null}, "ad_group_id": {"type": "bigint", "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": "bigint", "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}, "clicks": {"type": "bigint", "index": 17, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 18, "name": "impressions", "comment": null}, "spend": {"type": "numeric", "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.pinterest.pinterest_ads__pin_promotion_report"}, "model.pinterest.pinterest_ads__url_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_docs_pinterest", "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 without time zone", "index": 2, "name": "date_day", "comment": null}, "advertiser_id": {"type": "bigint", "index": 3, "name": "advertiser_id", "comment": null}, "advertiser_name": {"type": "text", "index": 4, "name": "advertiser_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}, "campaign_status": {"type": "text", "index": 7, "name": "campaign_status", "comment": null}, "ad_group_id": {"type": "bigint", "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": "bigint", "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}, "clicks": {"type": "bigint", "index": 24, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 25, "name": "impressions", "comment": null}, "spend": {"type": "numeric", "index": 26, "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.pinterest.pinterest_ads__url_report"}, "model.pinterest_source.stg_pinterest_ads__ad_group_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_docs_pinterest_source", "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": "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}, "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": "bigint", "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": "ad_reporting_docs_pinterest_source", "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": "ad_reporting_docs_pinterest_source", "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 without time zone", "index": 2, "name": "date_day", "comment": null}, "ad_group_id": {"type": "bigint", "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": "bigint", "index": 6, "name": "campaign_id", "comment": null}, "advertiser_id": {"type": "bigint", "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}}, "stats": {"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": "ad_reporting_docs_pinterest_source", "name": "stg_pinterest_ads__ad_group_report_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_group_id": {"type": "bigint", "index": 1, "name": "ad_group_id", "comment": null}, "advertiser_id": {"type": "bigint", "index": 2, "name": "advertiser_id", "comment": null}, "date": {"type": "timestamp without time zone", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "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_daily_spend_cap": {"type": "integer", "index": 7, "name": "campaign_daily_spend_cap", "comment": null}, "campaign_id": {"type": "bigint", "index": 8, "name": "campaign_id", "comment": null}, "campaign_lifetime_spend_cap": {"type": "integer", "index": 9, "name": "campaign_lifetime_spend_cap", "comment": null}, "campaign_name": {"type": "text", "index": 10, "name": "campaign_name", "comment": null}, "campaign_status": {"type": "text", "index": 11, "name": "campaign_status", "comment": null}, "clickthrough_1": {"type": "integer", "index": 12, "name": "clickthrough_1", "comment": null}, "clickthrough_1_gross": {"type": "integer", "index": 13, "name": "clickthrough_1_gross", "comment": null}, "cpc_in_micro_dollar": {"type": "double precision", "index": 14, "name": "cpc_in_micro_dollar", "comment": null}, "cpm_in_micro_dollar": {"type": "double precision", "index": 15, "name": "cpm_in_micro_dollar", "comment": null}, "ctr": {"type": "double precision", "index": 16, "name": "ctr", "comment": null}, "ecpc_in_micro_dollar": {"type": "double precision", "index": 17, "name": "ecpc_in_micro_dollar", "comment": null}, "ecpm_in_micro_dollar": {"type": "double precision", "index": 18, "name": "ecpm_in_micro_dollar", "comment": null}, "ectr": {"type": "double precision", "index": 19, "name": "ectr", "comment": null}, "engagement_1": {"type": "integer", "index": 20, "name": "engagement_1", "comment": null}, "impression_1": {"type": "integer", "index": 21, "name": "impression_1", "comment": null}, "impression_1_gross": {"type": "integer", "index": 22, "name": "impression_1_gross", "comment": null}, "outbound_click_1": {"type": "integer", "index": 23, "name": "outbound_click_1", "comment": null}, "paid_impression": {"type": "integer", "index": 24, "name": "paid_impression", "comment": null}, "spend_in_micro_dollar": {"type": "integer", "index": 25, "name": "spend_in_micro_dollar", "comment": null}, "total_engagement": {"type": "integer", "index": 26, "name": "total_engagement", "comment": null}, "total_impression_frequency": {"type": "double precision", "index": 27, "name": "total_impression_frequency", "comment": null}, "total_impression_user": {"type": "integer", "index": 28, "name": "total_impression_user", "comment": null}}, "stats": {"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": "ad_reporting_docs_pinterest_source", "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": "bigint", "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": "ad_reporting_docs_pinterest_source", "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": "ad_reporting_docs_pinterest_source", "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 without time zone", "index": 2, "name": "date_day", "comment": null}, "advertiser_id": {"type": "bigint", "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}}, "stats": {"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": "ad_reporting_docs_pinterest_source", "name": "stg_pinterest_ads__advertiser_report_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"advertiser_id": {"type": "bigint", "index": 1, "name": "advertiser_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}, "clickthrough_1": {"type": "integer", "index": 4, "name": "clickthrough_1", "comment": null}, "clickthrough_1_gross": {"type": "integer", "index": 5, "name": "clickthrough_1_gross", "comment": null}, "cpc_in_micro_dollar": {"type": "double precision", "index": 6, "name": "cpc_in_micro_dollar", "comment": null}, "cpm_in_micro_dollar": {"type": "double precision", "index": 7, "name": "cpm_in_micro_dollar", "comment": null}, "ctr": {"type": "double precision", "index": 8, "name": "ctr", "comment": null}, "ecpc_in_micro_dollar": {"type": "double precision", "index": 9, "name": "ecpc_in_micro_dollar", "comment": null}, "ecpm_in_micro_dollar": {"type": "double precision", "index": 10, "name": "ecpm_in_micro_dollar", "comment": null}, "ectr": {"type": "double precision", "index": 11, "name": "ectr", "comment": null}, "engagement_1": {"type": "integer", "index": 12, "name": "engagement_1", "comment": null}, "impression_1": {"type": "integer", "index": 13, "name": "impression_1", "comment": null}, "impression_1_gross": {"type": "integer", "index": 14, "name": "impression_1_gross", "comment": null}, "outbound_click_1": {"type": "integer", "index": 15, "name": "outbound_click_1", "comment": null}, "paid_impression": {"type": "integer", "index": 16, "name": "paid_impression", "comment": null}, "spend_in_micro_dollar": {"type": "integer", "index": 17, "name": "spend_in_micro_dollar", "comment": null}, "total_engagement": {"type": "integer", "index": 18, "name": "total_engagement", "comment": null}, "total_impression_frequency": {"type": "double precision", "index": 19, "name": "total_impression_frequency", "comment": null}, "total_impression_user": {"type": "integer", "index": 20, "name": "total_impression_user", "comment": null}}, "stats": {"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": "ad_reporting_docs_pinterest_source", "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": "bigint", "index": 2, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "text", "index": 3, "name": "campaign_name", "comment": null}, "advertiser_id": {"type": "bigint", "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": "ad_reporting_docs_pinterest_source", "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": "ad_reporting_docs_pinterest_source", "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 without time zone", "index": 2, "name": "date_day", "comment": null}, "campaign_id": {"type": "bigint", "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": "bigint", "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}}, "stats": {"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": "ad_reporting_docs_pinterest_source", "name": "stg_pinterest_ads__campaign_report_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"advertiser_id": {"type": "bigint", "index": 1, "name": "advertiser_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 2, "name": "campaign_id", "comment": null}, "date": {"type": "timestamp without time zone", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "campaign_daily_spend_cap": {"type": "integer", "index": 5, "name": "campaign_daily_spend_cap", "comment": null}, "campaign_lifetime_spend_cap": {"type": "integer", "index": 6, "name": "campaign_lifetime_spend_cap", "comment": null}, "campaign_name": {"type": "text", "index": 7, "name": "campaign_name", "comment": null}, "campaign_status": {"type": "text", "index": 8, "name": "campaign_status", "comment": null}, "clickthrough_1": {"type": "integer", "index": 9, "name": "clickthrough_1", "comment": null}, "clickthrough_1_gross": {"type": "integer", "index": 10, "name": "clickthrough_1_gross", "comment": null}, "cpc_in_micro_dollar": {"type": "double precision", "index": 11, "name": "cpc_in_micro_dollar", "comment": null}, "cpm_in_micro_dollar": {"type": "double precision", "index": 12, "name": "cpm_in_micro_dollar", "comment": null}, "ctr": {"type": "double precision", "index": 13, "name": "ctr", "comment": null}, "ecpc_in_micro_dollar": {"type": "double precision", "index": 14, "name": "ecpc_in_micro_dollar", "comment": null}, "ecpm_in_micro_dollar": {"type": "double precision", "index": 15, "name": "ecpm_in_micro_dollar", "comment": null}, "ectr": {"type": "double precision", "index": 16, "name": "ectr", "comment": null}, "engagement_1": {"type": "integer", "index": 17, "name": "engagement_1", "comment": null}, "impression_1": {"type": "integer", "index": 18, "name": "impression_1", "comment": null}, "impression_1_gross": {"type": "integer", "index": 19, "name": "impression_1_gross", "comment": null}, "outbound_click_1": {"type": "integer", "index": 20, "name": "outbound_click_1", "comment": null}, "paid_impression": {"type": "integer", "index": 21, "name": "paid_impression", "comment": null}, "spend_in_micro_dollar": {"type": "integer", "index": 22, "name": "spend_in_micro_dollar", "comment": null}, "total_engagement": {"type": "integer", "index": 23, "name": "total_engagement", "comment": null}, "total_impression_frequency": {"type": "double precision", "index": 24, "name": "total_impression_frequency", "comment": null}, "total_impression_user": {"type": "integer", "index": 25, "name": "total_impression_user", "comment": null}}, "stats": {"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": "ad_reporting_docs_pinterest_source", "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": "bigint", "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": "bigint", "index": 6, "name": "ad_group_id", "comment": null}, "advertiser_id": {"type": "bigint", "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": "bigint", "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": "ad_reporting_docs_pinterest_source", "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": "ad_reporting_docs_pinterest_source", "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 without time zone", "index": 2, "name": "date_day", "comment": null}, "keyword_id": {"type": "bigint", "index": 3, "name": "keyword_id", "comment": null}, "pin_promotion_id": {"type": "bigint", "index": 4, "name": "pin_promotion_id", "comment": null}, "ad_group_id": {"type": "bigint", "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": "bigint", "index": 8, "name": "campaign_id", "comment": null}, "advertiser_id": {"type": "bigint", "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}}, "stats": {"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": "ad_reporting_docs_pinterest_source", "name": "stg_pinterest_ads__keyword_report_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_group_id": {"type": "bigint", "index": 1, "name": "ad_group_id", "comment": null}, "advertiser_id": {"type": "bigint", "index": 2, "name": "advertiser_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 3, "name": "campaign_id", "comment": null}, "date": {"type": "timestamp without time zone", "index": 4, "name": "date", "comment": null}, "keyword_id": {"type": "bigint", "index": 5, "name": "keyword_id", "comment": null}, "pin_id": {"type": "bigint", "index": 6, "name": "pin_id", "comment": null}, "pin_promotion_id": {"type": "bigint", "index": 7, "name": "pin_promotion_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 8, "name": "_fivetran_synced", "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}, "campaign_daily_spend_cap": {"type": "integer", "index": 11, "name": "campaign_daily_spend_cap", "comment": null}, "campaign_lifetime_spend_cap": {"type": "integer", "index": 12, "name": "campaign_lifetime_spend_cap", "comment": null}, "campaign_name": {"type": "text", "index": 13, "name": "campaign_name", "comment": null}, "campaign_status": {"type": "text", "index": 14, "name": "campaign_status", "comment": null}, "clickthrough_1": {"type": "integer", "index": 15, "name": "clickthrough_1", "comment": null}, "clickthrough_1_gross": {"type": "integer", "index": 16, "name": "clickthrough_1_gross", "comment": null}, "cpc_in_micro_dollar": {"type": "integer", "index": 17, "name": "cpc_in_micro_dollar", "comment": null}, "cpm_in_micro_dollar": {"type": "double precision", "index": 18, "name": "cpm_in_micro_dollar", "comment": null}, "ctr": {"type": "integer", "index": 19, "name": "ctr", "comment": null}, "ecpc_in_micro_dollar": {"type": "integer", "index": 20, "name": "ecpc_in_micro_dollar", "comment": null}, "ecpm_in_micro_dollar": {"type": "double precision", "index": 21, "name": "ecpm_in_micro_dollar", "comment": null}, "ectr": {"type": "integer", "index": 22, "name": "ectr", "comment": null}, "engagement_1": {"type": "integer", "index": 23, "name": "engagement_1", "comment": null}, "impression_1": {"type": "integer", "index": 24, "name": "impression_1", "comment": null}, "impression_1_gross": {"type": "integer", "index": 25, "name": "impression_1_gross", "comment": null}, "outbound_click_1": {"type": "integer", "index": 26, "name": "outbound_click_1", "comment": null}, "paid_impression": {"type": "integer", "index": 27, "name": "paid_impression", "comment": null}, "pin_promotion_name": {"type": "text", "index": 28, "name": "pin_promotion_name", "comment": null}, "pin_promotion_status": {"type": "text", "index": 29, "name": "pin_promotion_status", "comment": null}, "spend_in_micro_dollar": {"type": "integer", "index": 30, "name": "spend_in_micro_dollar", "comment": null}, "targeting_type": {"type": "text", "index": 31, "name": "targeting_type", "comment": null}, "targeting_value": {"type": "text", "index": 32, "name": "targeting_value", "comment": null}, "total_engagement": {"type": "integer", "index": 33, "name": "total_engagement", "comment": null}}, "stats": {"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": "ad_reporting_docs_pinterest_source", "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": "bigint", "index": 2, "name": "pin_promotion_id", "comment": null}, "advertiser_id": {"type": "bigint", "index": 3, "name": "advertiser_id", "comment": null}, "ad_group_id": {"type": "bigint", "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": "bigint", "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": "ad_reporting_docs_pinterest_source", "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": "ad_reporting_docs_pinterest_source", "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 without time zone", "index": 2, "name": "date_day", "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}, "campaign_id": {"type": "bigint", "index": 5, "name": "campaign_id", "comment": null}, "advertiser_id": {"type": "bigint", "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}}, "stats": {"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": "ad_reporting_docs_pinterest_source", "name": "stg_pinterest_ads__pin_promotion_report_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date": {"type": "timestamp without time zone", "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": "text", "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}}, "stats": {"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.reddit_ads__account_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_docs_reddit_ads", "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}}, "stats": {"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": "ad_reporting_docs_reddit_ads", "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}}, "stats": {"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": "ad_reporting_docs_reddit_ads", "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}}, "stats": {"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": "ad_reporting_docs_reddit_ads", "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}}, "stats": {"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": "ad_reporting_docs_reddit_ads", "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}}, "stats": {"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.reddit_ads_source.stg_reddit_ads__account": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_docs_reddit_ads_source", "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_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_docs_reddit_ads_source", "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": "ad_reporting_docs_reddit_ads_source", "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": "ad_reporting_docs_reddit_ads_source", "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": "ad_reporting_docs_reddit_ads_source", "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_group": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_docs_reddit_ads_source", "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_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_docs_reddit_ads_source", "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": "ad_reporting_docs_reddit_ads_source", "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": "ad_reporting_docs_reddit_ads_source", "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": "ad_reporting_docs_reddit_ads_source", "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": "ad_reporting_docs_reddit_ads_source", "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": "ad_reporting_docs_reddit_ads_source", "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": "ad_reporting_docs_reddit_ads_source", "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_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_docs_reddit_ads_source", "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": "ad_reporting_docs_reddit_ads_source", "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": "ad_reporting_docs_reddit_ads_source", "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.snapchat_ads__account_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_docs_snapchat_ads", "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}}, "stats": {"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": "ad_reporting_docs_snapchat_ads", "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}}, "stats": {"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": "ad_reporting_docs_snapchat_ads", "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}}, "stats": {"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": "ad_reporting_docs_snapchat_ads", "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}}, "stats": {"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": "ad_reporting_docs_snapchat_ads", "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}}, "stats": {"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.snapchat_ads_source.stg_snapchat_ads__ad_account_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_docs_snapchat_ads_source", "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": "ad_reporting_docs_snapchat_ads_source", "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": "ad_reporting_docs_snapchat_ads_source", "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": "ad_reporting_docs_snapchat_ads_source", "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": "ad_reporting_docs_snapchat_ads_source", "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}}, "stats": {"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": "ad_reporting_docs_snapchat_ads_source", "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}}, "stats": {"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": "ad_reporting_docs_snapchat_ads_source", "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": "ad_reporting_docs_snapchat_ads_source", "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": "ad_reporting_docs_snapchat_ads_source", "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}}, "stats": {"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": "ad_reporting_docs_snapchat_ads_source", "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": "integer", "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": "ad_reporting_docs_snapchat_ads_source", "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": "ad_reporting_docs_snapchat_ads_source", "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": "ad_reporting_docs_snapchat_ads_source", "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}}, "stats": {"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": "ad_reporting_docs_snapchat_ads_source", "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": "integer", "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": "ad_reporting_docs_snapchat_ads_source", "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": "ad_reporting_docs_snapchat_ads_source", "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": "ad_reporting_docs_snapchat_ads_source", "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": "ad_reporting_docs_snapchat_ads_source", "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": "ad_reporting_docs_stg_tiktok_ads", "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": "ad_reporting_docs_stg_tiktok_ads", "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": "ad_reporting_docs_stg_tiktok_ads", "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}}, "stats": {"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": "ad_reporting_docs_stg_tiktok_ads", "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}, "real_time_conversion": {"type": "integer", "index": 4, "name": "real_time_conversion", "comment": null}, "cpc": {"type": "double precision", "index": 5, "name": "cpc", "comment": null}, "video_play_actions": {"type": "integer", "index": 6, "name": "video_play_actions", "comment": null}, "conversion_rate": {"type": "integer", "index": 7, "name": "conversion_rate", "comment": null}, "video_views_p_75": {"type": "integer", "index": 8, "name": "video_views_p_75", "comment": null}, "result": {"type": "integer", "index": 9, "name": "result", "comment": null}, "video_views_p_50": {"type": "integer", "index": 10, "name": "video_views_p_50", "comment": null}, "impressions": {"type": "integer", "index": 11, "name": "impressions", "comment": null}, "comments": {"type": "integer", "index": 12, "name": "comments", "comment": null}, "real_time_cost_per_result": {"type": "double precision", "index": 13, "name": "real_time_cost_per_result", "comment": null}, "conversion": {"type": "integer", "index": 14, "name": "conversion", "comment": null}, "real_time_result": {"type": "integer", "index": 15, "name": "real_time_result", "comment": null}, "video_views_p_100": {"type": "integer", "index": 16, "name": "video_views_p_100", "comment": null}, "shares": {"type": "integer", "index": 17, "name": "shares", "comment": null}, "real_time_conversion_rate": {"type": "double precision", "index": 18, "name": "real_time_conversion_rate", "comment": null}, "cost_per_secondary_goal_result": {"type": "text", "index": 19, "name": "cost_per_secondary_goal_result", "comment": null}, "secondary_goal_result_rate": {"type": "text", "index": 20, "name": "secondary_goal_result_rate", "comment": null}, "clicks": {"type": "integer", "index": 21, "name": "clicks", "comment": null}, "cost_per_1000_reached": {"type": "double precision", "index": 22, "name": "cost_per_1000_reached", "comment": null}, "video_views_p_25": {"type": "integer", "index": 23, "name": "video_views_p_25", "comment": null}, "reach": {"type": "integer", "index": 24, "name": "reach", "comment": null}, "real_time_cost_per_conversion": {"type": "double precision", "index": 25, "name": "real_time_cost_per_conversion", "comment": null}, "profile_visits_rate": {"type": "integer", "index": 26, "name": "profile_visits_rate", "comment": null}, "average_video_play": {"type": "double precision", "index": 27, "name": "average_video_play", "comment": null}, "profile_visits": {"type": "integer", "index": 28, "name": "profile_visits", "comment": null}, "cpm": {"type": "double precision", "index": 29, "name": "cpm", "comment": null}, "ctr": {"type": "double precision", "index": 30, "name": "ctr", "comment": null}, "video_watched_2_s": {"type": "integer", "index": 31, "name": "video_watched_2_s", "comment": null}, "follows": {"type": "integer", "index": 32, "name": "follows", "comment": null}, "result_rate": {"type": "double precision", "index": 33, "name": "result_rate", "comment": null}, "video_watched_6_s": {"type": "integer", "index": 34, "name": "video_watched_6_s", "comment": null}, "secondary_goal_result": {"type": "text", "index": 35, "name": "secondary_goal_result", "comment": null}, "cost_per_result": {"type": "double precision", "index": 36, "name": "cost_per_result", "comment": null}, "average_video_play_per_user": {"type": "double precision", "index": 37, "name": "average_video_play_per_user", "comment": null}, "real_time_result_rate": {"type": "double precision", "index": 38, "name": "real_time_result_rate", "comment": null}, "spend": {"type": "double precision", "index": 39, "name": "spend", "comment": null}, "likes": {"type": "integer", "index": 40, "name": "likes", "comment": null}, "_fivetran_synced": {"type": "text", "index": 41, "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": "ad_reporting_docs_stg_tiktok_ads", "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": "ad_reporting_docs_stg_tiktok_ads", "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": "ad_reporting_docs_stg_tiktok_ads", "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}}, "stats": {"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": "ad_reporting_docs_stg_tiktok_ads", "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}, "real_time_conversion": {"type": "integer", "index": 4, "name": "real_time_conversion", "comment": null}, "cpc": {"type": "double precision", "index": 5, "name": "cpc", "comment": null}, "video_play_actions": {"type": "integer", "index": 6, "name": "video_play_actions", "comment": null}, "conversion_rate": {"type": "integer", "index": 7, "name": "conversion_rate", "comment": null}, "video_views_p_75": {"type": "integer", "index": 8, "name": "video_views_p_75", "comment": null}, "result": {"type": "integer", "index": 9, "name": "result", "comment": null}, "video_views_p_50": {"type": "integer", "index": 10, "name": "video_views_p_50", "comment": null}, "impressions": {"type": "integer", "index": 11, "name": "impressions", "comment": null}, "comments": {"type": "integer", "index": 12, "name": "comments", "comment": null}, "real_time_cost_per_result": {"type": "double precision", "index": 13, "name": "real_time_cost_per_result", "comment": null}, "conversion": {"type": "integer", "index": 14, "name": "conversion", "comment": null}, "real_time_result": {"type": "integer", "index": 15, "name": "real_time_result", "comment": null}, "video_views_p_100": {"type": "integer", "index": 16, "name": "video_views_p_100", "comment": null}, "shares": {"type": "integer", "index": 17, "name": "shares", "comment": null}, "real_time_conversion_rate": {"type": "integer", "index": 18, "name": "real_time_conversion_rate", "comment": null}, "cost_per_secondary_goal_result": {"type": "text", "index": 19, "name": "cost_per_secondary_goal_result", "comment": null}, "secondary_goal_result_rate": {"type": "text", "index": 20, "name": "secondary_goal_result_rate", "comment": null}, "clicks": {"type": "integer", "index": 21, "name": "clicks", "comment": null}, "cost_per_1000_reached": {"type": "integer", "index": 22, "name": "cost_per_1000_reached", "comment": null}, "video_views_p_25": {"type": "integer", "index": 23, "name": "video_views_p_25", "comment": null}, "reach": {"type": "integer", "index": 24, "name": "reach", "comment": null}, "real_time_cost_per_conversion": {"type": "double precision", "index": 25, "name": "real_time_cost_per_conversion", "comment": null}, "profile_visits_rate": {"type": "integer", "index": 26, "name": "profile_visits_rate", "comment": null}, "average_video_play": {"type": "double precision", "index": 27, "name": "average_video_play", "comment": null}, "profile_visits": {"type": "integer", "index": 28, "name": "profile_visits", "comment": null}, "cpm": {"type": "double precision", "index": 29, "name": "cpm", "comment": null}, "ctr": {"type": "double precision", "index": 30, "name": "ctr", "comment": null}, "video_watched_2_s": {"type": "integer", "index": 31, "name": "video_watched_2_s", "comment": null}, "follows": {"type": "integer", "index": 32, "name": "follows", "comment": null}, "result_rate": {"type": "integer", "index": 33, "name": "result_rate", "comment": null}, "video_watched_6_s": {"type": "integer", "index": 34, "name": "video_watched_6_s", "comment": null}, "secondary_goal_result": {"type": "text", "index": 35, "name": "secondary_goal_result", "comment": null}, "cost_per_result": {"type": "double precision", "index": 36, "name": "cost_per_result", "comment": null}, "average_video_play_per_user": {"type": "integer", "index": 37, "name": "average_video_play_per_user", "comment": null}, "real_time_result_rate": {"type": "integer", "index": 38, "name": "real_time_result_rate", "comment": null}, "spend": {"type": "double precision", "index": 39, "name": "spend", "comment": null}, "likes": {"type": "integer", "index": 40, "name": "likes", "comment": null}, "_fivetran_synced": {"type": "text", "index": 41, "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": "ad_reporting_docs_stg_tiktok_ads", "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": "ad_reporting_docs_stg_tiktok_ads", "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": "ad_reporting_docs_stg_tiktok_ads", "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": "ad_reporting_docs_stg_tiktok_ads", "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": "ad_reporting_docs_stg_tiktok_ads", "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}}, "stats": {"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": "ad_reporting_docs_stg_tiktok_ads", "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}, "real_time_conversion": {"type": "integer", "index": 4, "name": "real_time_conversion", "comment": null}, "cpc": {"type": "double precision", "index": 5, "name": "cpc", "comment": null}, "video_play_actions": {"type": "integer", "index": 6, "name": "video_play_actions", "comment": null}, "conversion_rate": {"type": "integer", "index": 7, "name": "conversion_rate", "comment": null}, "video_views_p_75": {"type": "integer", "index": 8, "name": "video_views_p_75", "comment": null}, "result": {"type": "integer", "index": 9, "name": "result", "comment": null}, "video_views_p_50": {"type": "integer", "index": 10, "name": "video_views_p_50", "comment": null}, "impressions": {"type": "integer", "index": 11, "name": "impressions", "comment": null}, "comments": {"type": "integer", "index": 12, "name": "comments", "comment": null}, "real_time_cost_per_result": {"type": "double precision", "index": 13, "name": "real_time_cost_per_result", "comment": null}, "conversion": {"type": "integer", "index": 14, "name": "conversion", "comment": null}, "real_time_result": {"type": "integer", "index": 15, "name": "real_time_result", "comment": null}, "video_views_p_100": {"type": "integer", "index": 16, "name": "video_views_p_100", "comment": null}, "shares": {"type": "integer", "index": 17, "name": "shares", "comment": null}, "real_time_conversion_rate": {"type": "double precision", "index": 18, "name": "real_time_conversion_rate", "comment": null}, "cost_per_secondary_goal_result": {"type": "text", "index": 19, "name": "cost_per_secondary_goal_result", "comment": null}, "secondary_goal_result_rate": {"type": "text", "index": 20, "name": "secondary_goal_result_rate", "comment": null}, "clicks": {"type": "integer", "index": 21, "name": "clicks", "comment": null}, "cost_per_1000_reached": {"type": "double precision", "index": 22, "name": "cost_per_1000_reached", "comment": null}, "video_views_p_25": {"type": "integer", "index": 23, "name": "video_views_p_25", "comment": null}, "reach": {"type": "integer", "index": 24, "name": "reach", "comment": null}, "real_time_cost_per_conversion": {"type": "double precision", "index": 25, "name": "real_time_cost_per_conversion", "comment": null}, "profile_visits_rate": {"type": "integer", "index": 26, "name": "profile_visits_rate", "comment": null}, "average_video_play": {"type": "double precision", "index": 27, "name": "average_video_play", "comment": null}, "profile_visits": {"type": "integer", "index": 28, "name": "profile_visits", "comment": null}, "cpm": {"type": "double precision", "index": 29, "name": "cpm", "comment": null}, "ctr": {"type": "double precision", "index": 30, "name": "ctr", "comment": null}, "video_watched_2_s": {"type": "integer", "index": 31, "name": "video_watched_2_s", "comment": null}, "follows": {"type": "integer", "index": 32, "name": "follows", "comment": null}, "result_rate": {"type": "double precision", "index": 33, "name": "result_rate", "comment": null}, "video_watched_6_s": {"type": "integer", "index": 34, "name": "video_watched_6_s", "comment": null}, "secondary_goal_result": {"type": "text", "index": 35, "name": "secondary_goal_result", "comment": null}, "cost_per_result": {"type": "double precision", "index": 36, "name": "cost_per_result", "comment": null}, "average_video_play_per_user": {"type": "double precision", "index": 37, "name": "average_video_play_per_user", "comment": null}, "real_time_result_rate": {"type": "double precision", "index": 38, "name": "real_time_result_rate", "comment": null}, "spend": {"type": "double precision", "index": 39, "name": "spend", "comment": null}, "likes": {"type": "integer", "index": 40, "name": "likes", "comment": null}, "_fivetran_synced": {"type": "text", "index": 41, "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.tiktok_ads.tiktok_ads__ad_group_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_docs_tiktok_ads", "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}, "daily_cpc": {"type": "double precision", "index": 29, "name": "daily_cpc", "comment": null}, "daily_cpm": {"type": "double precision", "index": 30, "name": "daily_cpm", "comment": null}, "daily_ctr": {"type": "bigint", "index": 31, "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": "ad_reporting_docs_tiktok_ads", "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}, "daily_cpc": {"type": "double precision", "index": 31, "name": "daily_cpc", "comment": null}, "daily_cpm": {"type": "double precision", "index": 32, "name": "daily_cpm", "comment": null}, "daily_ctr": {"type": "bigint", "index": 33, "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": "ad_reporting_docs_tiktok_ads", "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}, "daily_cpc": {"type": "double precision", "index": 21, "name": "daily_cpc", "comment": null}, "daily_cpm": {"type": "double precision", "index": 22, "name": "daily_cpm", "comment": null}, "daily_ctr": {"type": "bigint", "index": 23, "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": "ad_reporting_docs_tiktok_ads", "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}, "daily_cpc": {"type": "double precision", "index": 23, "name": "daily_cpc", "comment": null}, "daily_cpm": {"type": "double precision", "index": 24, "name": "daily_cpm", "comment": null}, "daily_ctr": {"type": "bigint", "index": 25, "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": "ad_reporting_docs_tiktok_ads", "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}, "daily_cpc": {"type": "double precision", "index": 39, "name": "daily_cpc", "comment": null}, "daily_cpm": {"type": "double precision", "index": 40, "name": "daily_cpm", "comment": null}, "daily_ctr": {"type": "bigint", "index": 41, "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": "ad_reporting_docs_twitter_ads", "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}}, "stats": {"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": "ad_reporting_docs_twitter_ads", "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}}, "stats": {"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__line_item_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_docs_twitter_ads", "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}}, "stats": {"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": "ad_reporting_docs_twitter_ads", "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}}, "stats": {"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": "ad_reporting_docs_twitter_ads", "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}}, "stats": {"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"}, "model.twitter_ads_source.stg_twitter_ads__account_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_docs_twitter_ads_source", "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": "ad_reporting_docs_twitter_ads_source", "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": "ad_reporting_docs_twitter_ads_source", "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": "ad_reporting_docs_twitter_ads_source", "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": "ad_reporting_docs_twitter_ads_source", "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}}, "stats": {"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": "ad_reporting_docs_twitter_ads_source", "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": "ad_reporting_docs_twitter_ads_source", "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": "ad_reporting_docs_twitter_ads_source", "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_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_docs_twitter_ads_source", "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}}, "stats": {"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": "ad_reporting_docs_twitter_ads_source", "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": "ad_reporting_docs_twitter_ads_source", "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": "ad_reporting_docs_twitter_ads_source", "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": "ad_reporting_docs_twitter_ads_source", "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}}, "stats": {"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": "ad_reporting_docs_twitter_ads_source", "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": "ad_reporting_docs_twitter_ads_source", "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": "ad_reporting_docs_twitter_ads_source", "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": "ad_reporting_docs_twitter_ads_source", "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": "ad_reporting_docs_twitter_ads_source", "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"}}, "sources": {"source.amazon_ads_source.amazon_ads.ad_group_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_docs", "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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}}, "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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.campaign_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_docs", "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_docs", "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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}}, "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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": "integer", "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": "ad_reporting_docs", "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}, "clicks": {"type": "integer", "index": 3, "name": "clicks", "comment": null}, "impressions": {"type": "integer", "index": 4, "name": "impressions", "comment": null}, "cost_in_local_currency": {"type": "integer", "index": 5, "name": "cost_in_local_currency", "comment": null}, "cost_in_usd": {"type": "integer", "index": 6, "name": "cost_in_usd", "comment": null}}, "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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": "ad_reporting_docs", "name": "linkedin_ad_creative_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}, "campaign_id": {"type": "integer", "index": 4, "name": "campaign_id", "comment": null}, "type": {"type": "text", "index": 5, "name": "type", "comment": null}, "version_tag": {"type": "integer", "index": 6, "name": "version_tag", "comment": null}, "status": {"type": "text", "index": 7, "name": "status", "comment": null}, "click_uri": {"type": "text", "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": "source.linkedin_source.linkedin_ads.creative_history"}, "source.microsoft_ads_source.microsoft_ads.account_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_docs", "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": "ad_reporting_docs", "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}}, "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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}}, "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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}}, "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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}, "clicks": {"type": "integer", "index": 13, "name": "clicks", "comment": null}, "impressions": {"type": "integer", "index": 14, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 15, "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.microsoft_ads_source.microsoft_ads.campaign_performance_daily_report"}, "source.microsoft_ads_source.microsoft_ads.keyword_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_docs", "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": "ad_reporting_docs", "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}}, "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": "ad_reporting_docs", "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}}, "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": "ad_reporting_docs", "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": "ad_reporting_docs", "name": "pinterest_ad_group_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_group_id": {"type": "bigint", "index": 1, "name": "ad_group_id", "comment": null}, "advertiser_id": {"type": "bigint", "index": 2, "name": "advertiser_id", "comment": null}, "date": {"type": "timestamp without time zone", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "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_daily_spend_cap": {"type": "integer", "index": 7, "name": "campaign_daily_spend_cap", "comment": null}, "campaign_id": {"type": "bigint", "index": 8, "name": "campaign_id", "comment": null}, "campaign_lifetime_spend_cap": {"type": "integer", "index": 9, "name": "campaign_lifetime_spend_cap", "comment": null}, "campaign_name": {"type": "text", "index": 10, "name": "campaign_name", "comment": null}, "campaign_status": {"type": "text", "index": 11, "name": "campaign_status", "comment": null}, "clickthrough_1": {"type": "integer", "index": 12, "name": "clickthrough_1", "comment": null}, "clickthrough_1_gross": {"type": "integer", "index": 13, "name": "clickthrough_1_gross", "comment": null}, "cpc_in_micro_dollar": {"type": "double precision", "index": 14, "name": "cpc_in_micro_dollar", "comment": null}, "cpm_in_micro_dollar": {"type": "double precision", "index": 15, "name": "cpm_in_micro_dollar", "comment": null}, "ctr": {"type": "double precision", "index": 16, "name": "ctr", "comment": null}, "ecpc_in_micro_dollar": {"type": "double precision", "index": 17, "name": "ecpc_in_micro_dollar", "comment": null}, "ecpm_in_micro_dollar": {"type": "double precision", "index": 18, "name": "ecpm_in_micro_dollar", "comment": null}, "ectr": {"type": "double precision", "index": 19, "name": "ectr", "comment": null}, "engagement_1": {"type": "integer", "index": 20, "name": "engagement_1", "comment": null}, "impression_1": {"type": "integer", "index": 21, "name": "impression_1", "comment": null}, "impression_1_gross": {"type": "integer", "index": 22, "name": "impression_1_gross", "comment": null}, "outbound_click_1": {"type": "integer", "index": 23, "name": "outbound_click_1", "comment": null}, "paid_impression": {"type": "integer", "index": 24, "name": "paid_impression", "comment": null}, "spend_in_micro_dollar": {"type": "integer", "index": 25, "name": "spend_in_micro_dollar", "comment": null}, "total_engagement": {"type": "integer", "index": 26, "name": "total_engagement", "comment": null}, "total_impression_frequency": {"type": "double precision", "index": 27, "name": "total_impression_frequency", "comment": null}, "total_impression_user": {"type": "integer", "index": 28, "name": "total_impression_user", "comment": null}}, "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": "ad_reporting_docs", "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": "ad_reporting_docs", "name": "pinterest_advertiser_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"advertiser_id": {"type": "bigint", "index": 1, "name": "advertiser_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}, "clickthrough_1": {"type": "integer", "index": 4, "name": "clickthrough_1", "comment": null}, "clickthrough_1_gross": {"type": "integer", "index": 5, "name": "clickthrough_1_gross", "comment": null}, "cpc_in_micro_dollar": {"type": "double precision", "index": 6, "name": "cpc_in_micro_dollar", "comment": null}, "cpm_in_micro_dollar": {"type": "double precision", "index": 7, "name": "cpm_in_micro_dollar", "comment": null}, "ctr": {"type": "double precision", "index": 8, "name": "ctr", "comment": null}, "ecpc_in_micro_dollar": {"type": "double precision", "index": 9, "name": "ecpc_in_micro_dollar", "comment": null}, "ecpm_in_micro_dollar": {"type": "double precision", "index": 10, "name": "ecpm_in_micro_dollar", "comment": null}, "ectr": {"type": "double precision", "index": 11, "name": "ectr", "comment": null}, "engagement_1": {"type": "integer", "index": 12, "name": "engagement_1", "comment": null}, "impression_1": {"type": "integer", "index": 13, "name": "impression_1", "comment": null}, "impression_1_gross": {"type": "integer", "index": 14, "name": "impression_1_gross", "comment": null}, "outbound_click_1": {"type": "integer", "index": 15, "name": "outbound_click_1", "comment": null}, "paid_impression": {"type": "integer", "index": 16, "name": "paid_impression", "comment": null}, "spend_in_micro_dollar": {"type": "integer", "index": 17, "name": "spend_in_micro_dollar", "comment": null}, "total_engagement": {"type": "integer", "index": 18, "name": "total_engagement", "comment": null}, "total_impression_frequency": {"type": "double precision", "index": 19, "name": "total_impression_frequency", "comment": null}, "total_impression_user": {"type": "integer", "index": 20, "name": "total_impression_user", "comment": null}}, "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": "ad_reporting_docs", "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": "ad_reporting_docs", "name": "pinterest_campaign_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"advertiser_id": {"type": "bigint", "index": 1, "name": "advertiser_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 2, "name": "campaign_id", "comment": null}, "date": {"type": "timestamp without time zone", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "campaign_daily_spend_cap": {"type": "integer", "index": 5, "name": "campaign_daily_spend_cap", "comment": null}, "campaign_lifetime_spend_cap": {"type": "integer", "index": 6, "name": "campaign_lifetime_spend_cap", "comment": null}, "campaign_name": {"type": "text", "index": 7, "name": "campaign_name", "comment": null}, "campaign_status": {"type": "text", "index": 8, "name": "campaign_status", "comment": null}, "clickthrough_1": {"type": "integer", "index": 9, "name": "clickthrough_1", "comment": null}, "clickthrough_1_gross": {"type": "integer", "index": 10, "name": "clickthrough_1_gross", "comment": null}, "cpc_in_micro_dollar": {"type": "double precision", "index": 11, "name": "cpc_in_micro_dollar", "comment": null}, "cpm_in_micro_dollar": {"type": "double precision", "index": 12, "name": "cpm_in_micro_dollar", "comment": null}, "ctr": {"type": "double precision", "index": 13, "name": "ctr", "comment": null}, "ecpc_in_micro_dollar": {"type": "double precision", "index": 14, "name": "ecpc_in_micro_dollar", "comment": null}, "ecpm_in_micro_dollar": {"type": "double precision", "index": 15, "name": "ecpm_in_micro_dollar", "comment": null}, "ectr": {"type": "double precision", "index": 16, "name": "ectr", "comment": null}, "engagement_1": {"type": "integer", "index": 17, "name": "engagement_1", "comment": null}, "impression_1": {"type": "integer", "index": 18, "name": "impression_1", "comment": null}, "impression_1_gross": {"type": "integer", "index": 19, "name": "impression_1_gross", "comment": null}, "outbound_click_1": {"type": "integer", "index": 20, "name": "outbound_click_1", "comment": null}, "paid_impression": {"type": "integer", "index": 21, "name": "paid_impression", "comment": null}, "spend_in_micro_dollar": {"type": "integer", "index": 22, "name": "spend_in_micro_dollar", "comment": null}, "total_engagement": {"type": "integer", "index": 23, "name": "total_engagement", "comment": null}, "total_impression_frequency": {"type": "double precision", "index": 24, "name": "total_impression_frequency", "comment": null}, "total_impression_user": {"type": "integer", "index": 25, "name": "total_impression_user", "comment": null}}, "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": "ad_reporting_docs", "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": "ad_reporting_docs", "name": "pinterest_keyword_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_group_id": {"type": "bigint", "index": 1, "name": "ad_group_id", "comment": null}, "advertiser_id": {"type": "bigint", "index": 2, "name": "advertiser_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 3, "name": "campaign_id", "comment": null}, "date": {"type": "timestamp without time zone", "index": 4, "name": "date", "comment": null}, "keyword_id": {"type": "bigint", "index": 5, "name": "keyword_id", "comment": null}, "pin_id": {"type": "bigint", "index": 6, "name": "pin_id", "comment": null}, "pin_promotion_id": {"type": "bigint", "index": 7, "name": "pin_promotion_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 8, "name": "_fivetran_synced", "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}, "campaign_daily_spend_cap": {"type": "integer", "index": 11, "name": "campaign_daily_spend_cap", "comment": null}, "campaign_lifetime_spend_cap": {"type": "integer", "index": 12, "name": "campaign_lifetime_spend_cap", "comment": null}, "campaign_name": {"type": "text", "index": 13, "name": "campaign_name", "comment": null}, "campaign_status": {"type": "text", "index": 14, "name": "campaign_status", "comment": null}, "clickthrough_1": {"type": "integer", "index": 15, "name": "clickthrough_1", "comment": null}, "clickthrough_1_gross": {"type": "integer", "index": 16, "name": "clickthrough_1_gross", "comment": null}, "cpc_in_micro_dollar": {"type": "integer", "index": 17, "name": "cpc_in_micro_dollar", "comment": null}, "cpm_in_micro_dollar": {"type": "double precision", "index": 18, "name": "cpm_in_micro_dollar", "comment": null}, "ctr": {"type": "integer", "index": 19, "name": "ctr", "comment": null}, "ecpc_in_micro_dollar": {"type": "integer", "index": 20, "name": "ecpc_in_micro_dollar", "comment": null}, "ecpm_in_micro_dollar": {"type": "double precision", "index": 21, "name": "ecpm_in_micro_dollar", "comment": null}, "ectr": {"type": "integer", "index": 22, "name": "ectr", "comment": null}, "engagement_1": {"type": "integer", "index": 23, "name": "engagement_1", "comment": null}, "impression_1": {"type": "integer", "index": 24, "name": "impression_1", "comment": null}, "impression_1_gross": {"type": "integer", "index": 25, "name": "impression_1_gross", "comment": null}, "outbound_click_1": {"type": "integer", "index": 26, "name": "outbound_click_1", "comment": null}, "paid_impression": {"type": "integer", "index": 27, "name": "paid_impression", "comment": null}, "pin_promotion_name": {"type": "text", "index": 28, "name": "pin_promotion_name", "comment": null}, "pin_promotion_status": {"type": "text", "index": 29, "name": "pin_promotion_status", "comment": null}, "spend_in_micro_dollar": {"type": "integer", "index": 30, "name": "spend_in_micro_dollar", "comment": null}, "targeting_type": {"type": "text", "index": 31, "name": "targeting_type", "comment": null}, "targeting_value": {"type": "text", "index": 32, "name": "targeting_value", "comment": null}, "total_engagement": {"type": "integer", "index": 33, "name": "total_engagement", "comment": null}}, "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": "ad_reporting_docs", "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": "ad_reporting_docs", "name": "pinterest_pin_promotion_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date": {"type": "timestamp without time zone", "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": "text", "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}}, "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": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_docs", "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": "ad_reporting_docs", "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": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_docs", "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": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_docs", "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_docs", "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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}}, "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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": "integer", "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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": "integer", "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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}, "real_time_conversion": {"type": "integer", "index": 4, "name": "real_time_conversion", "comment": null}, "cpc": {"type": "double precision", "index": 5, "name": "cpc", "comment": null}, "video_play_actions": {"type": "integer", "index": 6, "name": "video_play_actions", "comment": null}, "conversion_rate": {"type": "integer", "index": 7, "name": "conversion_rate", "comment": null}, "video_views_p_75": {"type": "integer", "index": 8, "name": "video_views_p_75", "comment": null}, "result": {"type": "integer", "index": 9, "name": "result", "comment": null}, "video_views_p_50": {"type": "integer", "index": 10, "name": "video_views_p_50", "comment": null}, "impressions": {"type": "integer", "index": 11, "name": "impressions", "comment": null}, "comments": {"type": "integer", "index": 12, "name": "comments", "comment": null}, "real_time_cost_per_result": {"type": "double precision", "index": 13, "name": "real_time_cost_per_result", "comment": null}, "conversion": {"type": "integer", "index": 14, "name": "conversion", "comment": null}, "real_time_result": {"type": "integer", "index": 15, "name": "real_time_result", "comment": null}, "video_views_p_100": {"type": "integer", "index": 16, "name": "video_views_p_100", "comment": null}, "shares": {"type": "integer", "index": 17, "name": "shares", "comment": null}, "real_time_conversion_rate": {"type": "integer", "index": 18, "name": "real_time_conversion_rate", "comment": null}, "cost_per_secondary_goal_result": {"type": "text", "index": 19, "name": "cost_per_secondary_goal_result", "comment": null}, "secondary_goal_result_rate": {"type": "text", "index": 20, "name": "secondary_goal_result_rate", "comment": null}, "clicks": {"type": "integer", "index": 21, "name": "clicks", "comment": null}, "cost_per_1000_reached": {"type": "integer", "index": 22, "name": "cost_per_1000_reached", "comment": null}, "video_views_p_25": {"type": "integer", "index": 23, "name": "video_views_p_25", "comment": null}, "reach": {"type": "integer", "index": 24, "name": "reach", "comment": null}, "real_time_cost_per_conversion": {"type": "double precision", "index": 25, "name": "real_time_cost_per_conversion", "comment": null}, "profile_visits_rate": {"type": "integer", "index": 26, "name": "profile_visits_rate", "comment": null}, "average_video_play": {"type": "double precision", "index": 27, "name": "average_video_play", "comment": null}, "profile_visits": {"type": "integer", "index": 28, "name": "profile_visits", "comment": null}, "cpm": {"type": "double precision", "index": 29, "name": "cpm", "comment": null}, "ctr": {"type": "double precision", "index": 30, "name": "ctr", "comment": null}, "video_watched_2_s": {"type": "integer", "index": 31, "name": "video_watched_2_s", "comment": null}, "follows": {"type": "integer", "index": 32, "name": "follows", "comment": null}, "result_rate": {"type": "integer", "index": 33, "name": "result_rate", "comment": null}, "video_watched_6_s": {"type": "integer", "index": 34, "name": "video_watched_6_s", "comment": null}, "secondary_goal_result": {"type": "text", "index": 35, "name": "secondary_goal_result", "comment": null}, "cost_per_result": {"type": "double precision", "index": 36, "name": "cost_per_result", "comment": null}, "average_video_play_per_user": {"type": "integer", "index": 37, "name": "average_video_play_per_user", "comment": null}, "real_time_result_rate": {"type": "integer", "index": 38, "name": "real_time_result_rate", "comment": null}, "spend": {"type": "double precision", "index": 39, "name": "spend", "comment": null}, "likes": {"type": "integer", "index": 40, "name": "likes", "comment": null}, "_fivetran_synced": {"type": "text", "index": 41, "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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}, "real_time_conversion": {"type": "integer", "index": 4, "name": "real_time_conversion", "comment": null}, "cpc": {"type": "double precision", "index": 5, "name": "cpc", "comment": null}, "video_play_actions": {"type": "integer", "index": 6, "name": "video_play_actions", "comment": null}, "conversion_rate": {"type": "integer", "index": 7, "name": "conversion_rate", "comment": null}, "video_views_p_75": {"type": "integer", "index": 8, "name": "video_views_p_75", "comment": null}, "result": {"type": "integer", "index": 9, "name": "result", "comment": null}, "video_views_p_50": {"type": "integer", "index": 10, "name": "video_views_p_50", "comment": null}, "impressions": {"type": "integer", "index": 11, "name": "impressions", "comment": null}, "comments": {"type": "integer", "index": 12, "name": "comments", "comment": null}, "real_time_cost_per_result": {"type": "double precision", "index": 13, "name": "real_time_cost_per_result", "comment": null}, "conversion": {"type": "integer", "index": 14, "name": "conversion", "comment": null}, "real_time_result": {"type": "integer", "index": 15, "name": "real_time_result", "comment": null}, "video_views_p_100": {"type": "integer", "index": 16, "name": "video_views_p_100", "comment": null}, "shares": {"type": "integer", "index": 17, "name": "shares", "comment": null}, "real_time_conversion_rate": {"type": "double precision", "index": 18, "name": "real_time_conversion_rate", "comment": null}, "cost_per_secondary_goal_result": {"type": "text", "index": 19, "name": "cost_per_secondary_goal_result", "comment": null}, "secondary_goal_result_rate": {"type": "text", "index": 20, "name": "secondary_goal_result_rate", "comment": null}, "clicks": {"type": "integer", "index": 21, "name": "clicks", "comment": null}, "cost_per_1000_reached": {"type": "double precision", "index": 22, "name": "cost_per_1000_reached", "comment": null}, "video_views_p_25": {"type": "integer", "index": 23, "name": "video_views_p_25", "comment": null}, "reach": {"type": "integer", "index": 24, "name": "reach", "comment": null}, "real_time_cost_per_conversion": {"type": "double precision", "index": 25, "name": "real_time_cost_per_conversion", "comment": null}, "profile_visits_rate": {"type": "integer", "index": 26, "name": "profile_visits_rate", "comment": null}, "average_video_play": {"type": "double precision", "index": 27, "name": "average_video_play", "comment": null}, "profile_visits": {"type": "integer", "index": 28, "name": "profile_visits", "comment": null}, "cpm": {"type": "double precision", "index": 29, "name": "cpm", "comment": null}, "ctr": {"type": "double precision", "index": 30, "name": "ctr", "comment": null}, "video_watched_2_s": {"type": "integer", "index": 31, "name": "video_watched_2_s", "comment": null}, "follows": {"type": "integer", "index": 32, "name": "follows", "comment": null}, "result_rate": {"type": "double precision", "index": 33, "name": "result_rate", "comment": null}, "video_watched_6_s": {"type": "integer", "index": 34, "name": "video_watched_6_s", "comment": null}, "secondary_goal_result": {"type": "text", "index": 35, "name": "secondary_goal_result", "comment": null}, "cost_per_result": {"type": "double precision", "index": 36, "name": "cost_per_result", "comment": null}, "average_video_play_per_user": {"type": "double precision", "index": 37, "name": "average_video_play_per_user", "comment": null}, "real_time_result_rate": {"type": "double precision", "index": 38, "name": "real_time_result_rate", "comment": null}, "spend": {"type": "double precision", "index": 39, "name": "spend", "comment": null}, "likes": {"type": "integer", "index": 40, "name": "likes", "comment": null}, "_fivetran_synced": {"type": "text", "index": 41, "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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}, "real_time_conversion": {"type": "integer", "index": 4, "name": "real_time_conversion", "comment": null}, "cpc": {"type": "double precision", "index": 5, "name": "cpc", "comment": null}, "video_play_actions": {"type": "integer", "index": 6, "name": "video_play_actions", "comment": null}, "conversion_rate": {"type": "integer", "index": 7, "name": "conversion_rate", "comment": null}, "video_views_p_75": {"type": "integer", "index": 8, "name": "video_views_p_75", "comment": null}, "result": {"type": "integer", "index": 9, "name": "result", "comment": null}, "video_views_p_50": {"type": "integer", "index": 10, "name": "video_views_p_50", "comment": null}, "impressions": {"type": "integer", "index": 11, "name": "impressions", "comment": null}, "comments": {"type": "integer", "index": 12, "name": "comments", "comment": null}, "real_time_cost_per_result": {"type": "double precision", "index": 13, "name": "real_time_cost_per_result", "comment": null}, "conversion": {"type": "integer", "index": 14, "name": "conversion", "comment": null}, "real_time_result": {"type": "integer", "index": 15, "name": "real_time_result", "comment": null}, "video_views_p_100": {"type": "integer", "index": 16, "name": "video_views_p_100", "comment": null}, "shares": {"type": "integer", "index": 17, "name": "shares", "comment": null}, "real_time_conversion_rate": {"type": "double precision", "index": 18, "name": "real_time_conversion_rate", "comment": null}, "cost_per_secondary_goal_result": {"type": "text", "index": 19, "name": "cost_per_secondary_goal_result", "comment": null}, "secondary_goal_result_rate": {"type": "text", "index": 20, "name": "secondary_goal_result_rate", "comment": null}, "clicks": {"type": "integer", "index": 21, "name": "clicks", "comment": null}, "cost_per_1000_reached": {"type": "double precision", "index": 22, "name": "cost_per_1000_reached", "comment": null}, "video_views_p_25": {"type": "integer", "index": 23, "name": "video_views_p_25", "comment": null}, "reach": {"type": "integer", "index": 24, "name": "reach", "comment": null}, "real_time_cost_per_conversion": {"type": "double precision", "index": 25, "name": "real_time_cost_per_conversion", "comment": null}, "profile_visits_rate": {"type": "integer", "index": 26, "name": "profile_visits_rate", "comment": null}, "average_video_play": {"type": "double precision", "index": 27, "name": "average_video_play", "comment": null}, "profile_visits": {"type": "integer", "index": 28, "name": "profile_visits", "comment": null}, "cpm": {"type": "double precision", "index": 29, "name": "cpm", "comment": null}, "ctr": {"type": "double precision", "index": 30, "name": "ctr", "comment": null}, "video_watched_2_s": {"type": "integer", "index": 31, "name": "video_watched_2_s", "comment": null}, "follows": {"type": "integer", "index": 32, "name": "follows", "comment": null}, "result_rate": {"type": "double precision", "index": 33, "name": "result_rate", "comment": null}, "video_watched_6_s": {"type": "integer", "index": 34, "name": "video_watched_6_s", "comment": null}, "secondary_goal_result": {"type": "text", "index": 35, "name": "secondary_goal_result", "comment": null}, "cost_per_result": {"type": "double precision", "index": 36, "name": "cost_per_result", "comment": null}, "average_video_play_per_user": {"type": "double precision", "index": 37, "name": "average_video_play_per_user", "comment": null}, "real_time_result_rate": {"type": "double precision", "index": 38, "name": "real_time_result_rate", "comment": null}, "spend": {"type": "double precision", "index": 39, "name": "spend", "comment": null}, "likes": {"type": "integer", "index": 40, "name": "likes", "comment": null}, "_fivetran_synced": {"type": "text", "index": 41, "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_docs", "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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": "ad_reporting_docs", "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 +{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/catalog/v1.json", "dbt_version": "1.8.6", "generated_at": "2024-09-17T18:25:22.109040Z", "invocation_id": "a5634668-738f-4a53-819e-1795b5ea9085", "env": {}}, "nodes": {"seed.ad_reporting_integration_tests.amazon_ads_ad_group_history_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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}}, "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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}}, "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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}, "clicks": {"type": "integer", "index": 3, "name": "clicks", "comment": null}, "impressions": {"type": "integer", "index": 4, "name": "impressions", "comment": null}, "cost_in_local_currency": {"type": "integer", "index": 5, "name": "cost_in_local_currency", "comment": null}, "cost_in_usd": {"type": "integer", "index": 6, "name": "cost_in_usd", "comment": null}}, "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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}}, "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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}}, "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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}}, "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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}, "clicks": {"type": "integer", "index": 13, "name": "clicks", "comment": null}, "impressions": {"type": "integer", "index": 14, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 15, "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.microsoft_ads_campaign_performance_daily_report_data"}, "seed.ad_reporting_integration_tests.microsoft_ads_keyword_history_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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}}, "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": "ad_reporting_integration_tests_7", "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}}, "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "name": "pinterest_ad_group_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_group_id": {"type": "bigint", "index": 1, "name": "ad_group_id", "comment": null}, "advertiser_id": {"type": "bigint", "index": 2, "name": "advertiser_id", "comment": null}, "date": {"type": "timestamp without time zone", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "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_daily_spend_cap": {"type": "integer", "index": 7, "name": "campaign_daily_spend_cap", "comment": null}, "campaign_id": {"type": "bigint", "index": 8, "name": "campaign_id", "comment": null}, "campaign_lifetime_spend_cap": {"type": "integer", "index": 9, "name": "campaign_lifetime_spend_cap", "comment": null}, "campaign_name": {"type": "text", "index": 10, "name": "campaign_name", "comment": null}, "campaign_status": {"type": "text", "index": 11, "name": "campaign_status", "comment": null}, "clickthrough_1": {"type": "integer", "index": 12, "name": "clickthrough_1", "comment": null}, "clickthrough_1_gross": {"type": "integer", "index": 13, "name": "clickthrough_1_gross", "comment": null}, "cpc_in_micro_dollar": {"type": "double precision", "index": 14, "name": "cpc_in_micro_dollar", "comment": null}, "cpm_in_micro_dollar": {"type": "double precision", "index": 15, "name": "cpm_in_micro_dollar", "comment": null}, "ctr": {"type": "double precision", "index": 16, "name": "ctr", "comment": null}, "ecpc_in_micro_dollar": {"type": "double precision", "index": 17, "name": "ecpc_in_micro_dollar", "comment": null}, "ecpm_in_micro_dollar": {"type": "double precision", "index": 18, "name": "ecpm_in_micro_dollar", "comment": null}, "ectr": {"type": "double precision", "index": 19, "name": "ectr", "comment": null}, "engagement_1": {"type": "integer", "index": 20, "name": "engagement_1", "comment": null}, "impression_1": {"type": "integer", "index": 21, "name": "impression_1", "comment": null}, "impression_1_gross": {"type": "integer", "index": 22, "name": "impression_1_gross", "comment": null}, "outbound_click_1": {"type": "integer", "index": 23, "name": "outbound_click_1", "comment": null}, "paid_impression": {"type": "integer", "index": 24, "name": "paid_impression", "comment": null}, "spend_in_micro_dollar": {"type": "integer", "index": 25, "name": "spend_in_micro_dollar", "comment": null}, "total_engagement": {"type": "integer", "index": 26, "name": "total_engagement", "comment": null}, "total_impression_frequency": {"type": "double precision", "index": 27, "name": "total_impression_frequency", "comment": null}, "total_impression_user": {"type": "integer", "index": 28, "name": "total_impression_user", "comment": null}}, "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "name": "pinterest_advertiser_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"advertiser_id": {"type": "bigint", "index": 1, "name": "advertiser_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}, "clickthrough_1": {"type": "integer", "index": 4, "name": "clickthrough_1", "comment": null}, "clickthrough_1_gross": {"type": "integer", "index": 5, "name": "clickthrough_1_gross", "comment": null}, "cpc_in_micro_dollar": {"type": "double precision", "index": 6, "name": "cpc_in_micro_dollar", "comment": null}, "cpm_in_micro_dollar": {"type": "double precision", "index": 7, "name": "cpm_in_micro_dollar", "comment": null}, "ctr": {"type": "double precision", "index": 8, "name": "ctr", "comment": null}, "ecpc_in_micro_dollar": {"type": "double precision", "index": 9, "name": "ecpc_in_micro_dollar", "comment": null}, "ecpm_in_micro_dollar": {"type": "double precision", "index": 10, "name": "ecpm_in_micro_dollar", "comment": null}, "ectr": {"type": "double precision", "index": 11, "name": "ectr", "comment": null}, "engagement_1": {"type": "integer", "index": 12, "name": "engagement_1", "comment": null}, "impression_1": {"type": "integer", "index": 13, "name": "impression_1", "comment": null}, "impression_1_gross": {"type": "integer", "index": 14, "name": "impression_1_gross", "comment": null}, "outbound_click_1": {"type": "integer", "index": 15, "name": "outbound_click_1", "comment": null}, "paid_impression": {"type": "integer", "index": 16, "name": "paid_impression", "comment": null}, "spend_in_micro_dollar": {"type": "integer", "index": 17, "name": "spend_in_micro_dollar", "comment": null}, "total_engagement": {"type": "integer", "index": 18, "name": "total_engagement", "comment": null}, "total_impression_frequency": {"type": "double precision", "index": 19, "name": "total_impression_frequency", "comment": null}, "total_impression_user": {"type": "integer", "index": 20, "name": "total_impression_user", "comment": null}}, "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "name": "pinterest_campaign_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"advertiser_id": {"type": "bigint", "index": 1, "name": "advertiser_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 2, "name": "campaign_id", "comment": null}, "date": {"type": "timestamp without time zone", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "campaign_daily_spend_cap": {"type": "integer", "index": 5, "name": "campaign_daily_spend_cap", "comment": null}, "campaign_lifetime_spend_cap": {"type": "integer", "index": 6, "name": "campaign_lifetime_spend_cap", "comment": null}, "campaign_name": {"type": "text", "index": 7, "name": "campaign_name", "comment": null}, "campaign_status": {"type": "text", "index": 8, "name": "campaign_status", "comment": null}, "clickthrough_1": {"type": "integer", "index": 9, "name": "clickthrough_1", "comment": null}, "clickthrough_1_gross": {"type": "integer", "index": 10, "name": "clickthrough_1_gross", "comment": null}, "cpc_in_micro_dollar": {"type": "double precision", "index": 11, "name": "cpc_in_micro_dollar", "comment": null}, "cpm_in_micro_dollar": {"type": "double precision", "index": 12, "name": "cpm_in_micro_dollar", "comment": null}, "ctr": {"type": "double precision", "index": 13, "name": "ctr", "comment": null}, "ecpc_in_micro_dollar": {"type": "double precision", "index": 14, "name": "ecpc_in_micro_dollar", "comment": null}, "ecpm_in_micro_dollar": {"type": "double precision", "index": 15, "name": "ecpm_in_micro_dollar", "comment": null}, "ectr": {"type": "double precision", "index": 16, "name": "ectr", "comment": null}, "engagement_1": {"type": "integer", "index": 17, "name": "engagement_1", "comment": null}, "impression_1": {"type": "integer", "index": 18, "name": "impression_1", "comment": null}, "impression_1_gross": {"type": "integer", "index": 19, "name": "impression_1_gross", "comment": null}, "outbound_click_1": {"type": "integer", "index": 20, "name": "outbound_click_1", "comment": null}, "paid_impression": {"type": "integer", "index": 21, "name": "paid_impression", "comment": null}, "spend_in_micro_dollar": {"type": "integer", "index": 22, "name": "spend_in_micro_dollar", "comment": null}, "total_engagement": {"type": "integer", "index": 23, "name": "total_engagement", "comment": null}, "total_impression_frequency": {"type": "double precision", "index": 24, "name": "total_impression_frequency", "comment": null}, "total_impression_user": {"type": "integer", "index": 25, "name": "total_impression_user", "comment": null}}, "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "name": "pinterest_keyword_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_group_id": {"type": "bigint", "index": 1, "name": "ad_group_id", "comment": null}, "advertiser_id": {"type": "bigint", "index": 2, "name": "advertiser_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 3, "name": "campaign_id", "comment": null}, "date": {"type": "timestamp without time zone", "index": 4, "name": "date", "comment": null}, "keyword_id": {"type": "bigint", "index": 5, "name": "keyword_id", "comment": null}, "pin_id": {"type": "bigint", "index": 6, "name": "pin_id", "comment": null}, "pin_promotion_id": {"type": "bigint", "index": 7, "name": "pin_promotion_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 8, "name": "_fivetran_synced", "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}, "campaign_daily_spend_cap": {"type": "integer", "index": 11, "name": "campaign_daily_spend_cap", "comment": null}, "campaign_lifetime_spend_cap": {"type": "integer", "index": 12, "name": "campaign_lifetime_spend_cap", "comment": null}, "campaign_name": {"type": "text", "index": 13, "name": "campaign_name", "comment": null}, "campaign_status": {"type": "text", "index": 14, "name": "campaign_status", "comment": null}, "clickthrough_1": {"type": "integer", "index": 15, "name": "clickthrough_1", "comment": null}, "clickthrough_1_gross": {"type": "integer", "index": 16, "name": "clickthrough_1_gross", "comment": null}, "cpc_in_micro_dollar": {"type": "integer", "index": 17, "name": "cpc_in_micro_dollar", "comment": null}, "cpm_in_micro_dollar": {"type": "double precision", "index": 18, "name": "cpm_in_micro_dollar", "comment": null}, "ctr": {"type": "integer", "index": 19, "name": "ctr", "comment": null}, "ecpc_in_micro_dollar": {"type": "integer", "index": 20, "name": "ecpc_in_micro_dollar", "comment": null}, "ecpm_in_micro_dollar": {"type": "double precision", "index": 21, "name": "ecpm_in_micro_dollar", "comment": null}, "ectr": {"type": "integer", "index": 22, "name": "ectr", "comment": null}, "engagement_1": {"type": "integer", "index": 23, "name": "engagement_1", "comment": null}, "impression_1": {"type": "integer", "index": 24, "name": "impression_1", "comment": null}, "impression_1_gross": {"type": "integer", "index": 25, "name": "impression_1_gross", "comment": null}, "outbound_click_1": {"type": "integer", "index": 26, "name": "outbound_click_1", "comment": null}, "paid_impression": {"type": "integer", "index": 27, "name": "paid_impression", "comment": null}, "pin_promotion_name": {"type": "text", "index": 28, "name": "pin_promotion_name", "comment": null}, "pin_promotion_status": {"type": "text", "index": 29, "name": "pin_promotion_status", "comment": null}, "spend_in_micro_dollar": {"type": "integer", "index": 30, "name": "spend_in_micro_dollar", "comment": null}, "targeting_type": {"type": "text", "index": 31, "name": "targeting_type", "comment": null}, "targeting_value": {"type": "text", "index": 32, "name": "targeting_value", "comment": null}, "total_engagement": {"type": "integer", "index": 33, "name": "total_engagement", "comment": null}}, "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "name": "pinterest_pin_promotion_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date": {"type": "timestamp without time zone", "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": "text", "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}}, "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_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_7", "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_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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}}, "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "integer", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "integer", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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}, "real_time_conversion": {"type": "integer", "index": 4, "name": "real_time_conversion", "comment": null}, "cpc": {"type": "double precision", "index": 5, "name": "cpc", "comment": null}, "video_play_actions": {"type": "integer", "index": 6, "name": "video_play_actions", "comment": null}, "conversion_rate": {"type": "integer", "index": 7, "name": "conversion_rate", "comment": null}, "video_views_p_75": {"type": "integer", "index": 8, "name": "video_views_p_75", "comment": null}, "result": {"type": "integer", "index": 9, "name": "result", "comment": null}, "video_views_p_50": {"type": "integer", "index": 10, "name": "video_views_p_50", "comment": null}, "impressions": {"type": "integer", "index": 11, "name": "impressions", "comment": null}, "comments": {"type": "integer", "index": 12, "name": "comments", "comment": null}, "real_time_cost_per_result": {"type": "double precision", "index": 13, "name": "real_time_cost_per_result", "comment": null}, "conversion": {"type": "integer", "index": 14, "name": "conversion", "comment": null}, "real_time_result": {"type": "integer", "index": 15, "name": "real_time_result", "comment": null}, "video_views_p_100": {"type": "integer", "index": 16, "name": "video_views_p_100", "comment": null}, "shares": {"type": "integer", "index": 17, "name": "shares", "comment": null}, "real_time_conversion_rate": {"type": "integer", "index": 18, "name": "real_time_conversion_rate", "comment": null}, "cost_per_secondary_goal_result": {"type": "text", "index": 19, "name": "cost_per_secondary_goal_result", "comment": null}, "secondary_goal_result_rate": {"type": "text", "index": 20, "name": "secondary_goal_result_rate", "comment": null}, "clicks": {"type": "integer", "index": 21, "name": "clicks", "comment": null}, "cost_per_1000_reached": {"type": "integer", "index": 22, "name": "cost_per_1000_reached", "comment": null}, "video_views_p_25": {"type": "integer", "index": 23, "name": "video_views_p_25", "comment": null}, "reach": {"type": "integer", "index": 24, "name": "reach", "comment": null}, "real_time_cost_per_conversion": {"type": "double precision", "index": 25, "name": "real_time_cost_per_conversion", "comment": null}, "profile_visits_rate": {"type": "integer", "index": 26, "name": "profile_visits_rate", "comment": null}, "average_video_play": {"type": "double precision", "index": 27, "name": "average_video_play", "comment": null}, "profile_visits": {"type": "integer", "index": 28, "name": "profile_visits", "comment": null}, "cpm": {"type": "double precision", "index": 29, "name": "cpm", "comment": null}, "ctr": {"type": "double precision", "index": 30, "name": "ctr", "comment": null}, "video_watched_2_s": {"type": "integer", "index": 31, "name": "video_watched_2_s", "comment": null}, "follows": {"type": "integer", "index": 32, "name": "follows", "comment": null}, "result_rate": {"type": "integer", "index": 33, "name": "result_rate", "comment": null}, "video_watched_6_s": {"type": "integer", "index": 34, "name": "video_watched_6_s", "comment": null}, "secondary_goal_result": {"type": "text", "index": 35, "name": "secondary_goal_result", "comment": null}, "cost_per_result": {"type": "double precision", "index": 36, "name": "cost_per_result", "comment": null}, "average_video_play_per_user": {"type": "integer", "index": 37, "name": "average_video_play_per_user", "comment": null}, "real_time_result_rate": {"type": "integer", "index": 38, "name": "real_time_result_rate", "comment": null}, "spend": {"type": "double precision", "index": 39, "name": "spend", "comment": null}, "likes": {"type": "integer", "index": 40, "name": "likes", "comment": null}, "_fivetran_synced": {"type": "text", "index": 41, "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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}, "real_time_conversion": {"type": "integer", "index": 4, "name": "real_time_conversion", "comment": null}, "cpc": {"type": "double precision", "index": 5, "name": "cpc", "comment": null}, "video_play_actions": {"type": "integer", "index": 6, "name": "video_play_actions", "comment": null}, "conversion_rate": {"type": "integer", "index": 7, "name": "conversion_rate", "comment": null}, "video_views_p_75": {"type": "integer", "index": 8, "name": "video_views_p_75", "comment": null}, "result": {"type": "integer", "index": 9, "name": "result", "comment": null}, "video_views_p_50": {"type": "integer", "index": 10, "name": "video_views_p_50", "comment": null}, "impressions": {"type": "integer", "index": 11, "name": "impressions", "comment": null}, "comments": {"type": "integer", "index": 12, "name": "comments", "comment": null}, "real_time_cost_per_result": {"type": "double precision", "index": 13, "name": "real_time_cost_per_result", "comment": null}, "conversion": {"type": "integer", "index": 14, "name": "conversion", "comment": null}, "real_time_result": {"type": "integer", "index": 15, "name": "real_time_result", "comment": null}, "video_views_p_100": {"type": "integer", "index": 16, "name": "video_views_p_100", "comment": null}, "shares": {"type": "integer", "index": 17, "name": "shares", "comment": null}, "real_time_conversion_rate": {"type": "double precision", "index": 18, "name": "real_time_conversion_rate", "comment": null}, "cost_per_secondary_goal_result": {"type": "text", "index": 19, "name": "cost_per_secondary_goal_result", "comment": null}, "secondary_goal_result_rate": {"type": "text", "index": 20, "name": "secondary_goal_result_rate", "comment": null}, "clicks": {"type": "integer", "index": 21, "name": "clicks", "comment": null}, "cost_per_1000_reached": {"type": "double precision", "index": 22, "name": "cost_per_1000_reached", "comment": null}, "video_views_p_25": {"type": "integer", "index": 23, "name": "video_views_p_25", "comment": null}, "reach": {"type": "integer", "index": 24, "name": "reach", "comment": null}, "real_time_cost_per_conversion": {"type": "double precision", "index": 25, "name": "real_time_cost_per_conversion", "comment": null}, "profile_visits_rate": {"type": "integer", "index": 26, "name": "profile_visits_rate", "comment": null}, "average_video_play": {"type": "double precision", "index": 27, "name": "average_video_play", "comment": null}, "profile_visits": {"type": "integer", "index": 28, "name": "profile_visits", "comment": null}, "cpm": {"type": "double precision", "index": 29, "name": "cpm", "comment": null}, "ctr": {"type": "double precision", "index": 30, "name": "ctr", "comment": null}, "video_watched_2_s": {"type": "integer", "index": 31, "name": "video_watched_2_s", "comment": null}, "follows": {"type": "integer", "index": 32, "name": "follows", "comment": null}, "result_rate": {"type": "double precision", "index": 33, "name": "result_rate", "comment": null}, "video_watched_6_s": {"type": "integer", "index": 34, "name": "video_watched_6_s", "comment": null}, "secondary_goal_result": {"type": "text", "index": 35, "name": "secondary_goal_result", "comment": null}, "cost_per_result": {"type": "double precision", "index": 36, "name": "cost_per_result", "comment": null}, "average_video_play_per_user": {"type": "double precision", "index": 37, "name": "average_video_play_per_user", "comment": null}, "real_time_result_rate": {"type": "double precision", "index": 38, "name": "real_time_result_rate", "comment": null}, "spend": {"type": "double precision", "index": 39, "name": "spend", "comment": null}, "likes": {"type": "integer", "index": 40, "name": "likes", "comment": null}, "_fivetran_synced": {"type": "text", "index": 41, "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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}, "real_time_conversion": {"type": "integer", "index": 4, "name": "real_time_conversion", "comment": null}, "cpc": {"type": "double precision", "index": 5, "name": "cpc", "comment": null}, "video_play_actions": {"type": "integer", "index": 6, "name": "video_play_actions", "comment": null}, "conversion_rate": {"type": "integer", "index": 7, "name": "conversion_rate", "comment": null}, "video_views_p_75": {"type": "integer", "index": 8, "name": "video_views_p_75", "comment": null}, "result": {"type": "integer", "index": 9, "name": "result", "comment": null}, "video_views_p_50": {"type": "integer", "index": 10, "name": "video_views_p_50", "comment": null}, "impressions": {"type": "integer", "index": 11, "name": "impressions", "comment": null}, "comments": {"type": "integer", "index": 12, "name": "comments", "comment": null}, "real_time_cost_per_result": {"type": "double precision", "index": 13, "name": "real_time_cost_per_result", "comment": null}, "conversion": {"type": "integer", "index": 14, "name": "conversion", "comment": null}, "real_time_result": {"type": "integer", "index": 15, "name": "real_time_result", "comment": null}, "video_views_p_100": {"type": "integer", "index": 16, "name": "video_views_p_100", "comment": null}, "shares": {"type": "integer", "index": 17, "name": "shares", "comment": null}, "real_time_conversion_rate": {"type": "double precision", "index": 18, "name": "real_time_conversion_rate", "comment": null}, "cost_per_secondary_goal_result": {"type": "text", "index": 19, "name": "cost_per_secondary_goal_result", "comment": null}, "secondary_goal_result_rate": {"type": "text", "index": 20, "name": "secondary_goal_result_rate", "comment": null}, "clicks": {"type": "integer", "index": 21, "name": "clicks", "comment": null}, "cost_per_1000_reached": {"type": "double precision", "index": 22, "name": "cost_per_1000_reached", "comment": null}, "video_views_p_25": {"type": "integer", "index": 23, "name": "video_views_p_25", "comment": null}, "reach": {"type": "integer", "index": 24, "name": "reach", "comment": null}, "real_time_cost_per_conversion": {"type": "double precision", "index": 25, "name": "real_time_cost_per_conversion", "comment": null}, "profile_visits_rate": {"type": "integer", "index": 26, "name": "profile_visits_rate", "comment": null}, "average_video_play": {"type": "double precision", "index": 27, "name": "average_video_play", "comment": null}, "profile_visits": {"type": "integer", "index": 28, "name": "profile_visits", "comment": null}, "cpm": {"type": "double precision", "index": 29, "name": "cpm", "comment": null}, "ctr": {"type": "double precision", "index": 30, "name": "ctr", "comment": null}, "video_watched_2_s": {"type": "integer", "index": 31, "name": "video_watched_2_s", "comment": null}, "follows": {"type": "integer", "index": 32, "name": "follows", "comment": null}, "result_rate": {"type": "double precision", "index": 33, "name": "result_rate", "comment": null}, "video_watched_6_s": {"type": "integer", "index": 34, "name": "video_watched_6_s", "comment": null}, "secondary_goal_result": {"type": "text", "index": 35, "name": "secondary_goal_result", "comment": null}, "cost_per_result": {"type": "double precision", "index": 36, "name": "cost_per_result", "comment": null}, "average_video_play_per_user": {"type": "double precision", "index": 37, "name": "average_video_play_per_user", "comment": null}, "real_time_result_rate": {"type": "double precision", "index": 38, "name": "real_time_result_rate", "comment": null}, "spend": {"type": "double precision", "index": 39, "name": "spend", "comment": null}, "likes": {"type": "integer", "index": 40, "name": "likes", "comment": null}, "_fivetran_synced": {"type": "text", "index": 41, "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7_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}}, "stats": {"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": "ad_reporting_integration_tests_7_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}}, "stats": {"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": "ad_reporting_integration_tests_7_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}}, "stats": {"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": "ad_reporting_integration_tests_7_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}}, "stats": {"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": "ad_reporting_integration_tests_7_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}}, "stats": {"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": "ad_reporting_integration_tests_7_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}}, "stats": {"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": "ad_reporting_integration_tests_7_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}}, "stats": {"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": "ad_reporting_integration_tests_7_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}}, "stats": {"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": "ad_reporting_integration_tests_7_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}}, "stats": {"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": "ad_reporting_integration_tests_7_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": "text", "index": 16, "name": "advertised_asin", "comment": null}, "advertised_sku": {"type": "text", "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}}, "stats": {"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": "ad_reporting_integration_tests_7_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}}, "stats": {"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": "ad_reporting_integration_tests_7_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}}, "stats": {"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": "ad_reporting_integration_tests_7_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}}, "stats": {"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": "ad_reporting_integration_tests_7_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}}, "stats": {"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": "ad_reporting_integration_tests_7_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}, "impressions": {"type": "bigint", "index": 17, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 18, "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": "ad_reporting_integration_tests_7_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}, "impressions": {"type": "bigint", "index": 17, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 18, "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": "ad_reporting_integration_tests_7_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}, "impressions": {"type": "bigint", "index": 15, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 16, "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": "ad_reporting_integration_tests_7_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}, "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__keyword_report"}, "model.apple_search_ads.apple_search_ads__organization_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_7_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}, "impressions": {"type": "bigint", "index": 10, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 11, "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": "ad_reporting_integration_tests_7_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}, "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__search_term_report"}, "model.facebook_ads.facebook_ads__account_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_7_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}}, "stats": {"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": "ad_reporting_integration_tests_7_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}, "clicks": {"type": "bigint", "index": 11, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 12, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 13, "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.facebook_ads__ad_report"}, "model.facebook_ads.facebook_ads__ad_set_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_7_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}, "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}}, "stats": {"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": "ad_reporting_integration_tests_7_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}}, "stats": {"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": "ad_reporting_integration_tests_7_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}}, "stats": {"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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "bigint", "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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "bigint", "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": "ad_reporting_integration_tests_7_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__creative_history": {"metadata": {"type": "VIEW", "schema": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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}}, "stats": {"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": "ad_reporting_integration_tests_7_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}}, "stats": {"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": "ad_reporting_integration_tests_7_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}}, "stats": {"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": "ad_reporting_integration_tests_7_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}}, "stats": {"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": "ad_reporting_integration_tests_7_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}}, "stats": {"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": "ad_reporting_integration_tests_7_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}}, "stats": {"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": "ad_reporting_integration_tests_7_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}}, "stats": {"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": "ad_reporting_integration_tests_7_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 without time zone", "index": 2, "name": "date_day", "comment": null}, "advertiser_name": {"type": "text", "index": 3, "name": "advertiser_name", "comment": null}, "advertiser_id": {"type": "bigint", "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": "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}, "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}}, "stats": {"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": "ad_reporting_integration_tests_7_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 without time zone", "index": 2, "name": "date_day", "comment": null}, "advertiser_name": {"type": "text", "index": 3, "name": "advertiser_name", "comment": null}, "advertiser_id": {"type": "bigint", "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}}, "stats": {"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": "ad_reporting_integration_tests_7_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 without time zone", "index": 2, "name": "date_day", "comment": null}, "advertiser_name": {"type": "text", "index": 3, "name": "advertiser_name", "comment": null}, "advertiser_id": {"type": "bigint", "index": 4, "name": "advertiser_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_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}}, "stats": {"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": "ad_reporting_integration_tests_7_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 without time zone", "index": 2, "name": "date_day", "comment": null}, "advertiser_name": {"type": "text", "index": 3, "name": "advertiser_name", "comment": null}, "advertiser_id": {"type": "bigint", "index": 4, "name": "advertiser_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}, "keyword_id": {"type": "bigint", "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}}, "stats": {"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": "ad_reporting_integration_tests_7_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 without time zone", "index": 2, "name": "date_day", "comment": null}, "advertiser_id": {"type": "bigint", "index": 3, "name": "advertiser_id", "comment": null}, "advertiser_name": {"type": "text", "index": 4, "name": "advertiser_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}, "campaign_status": {"type": "text", "index": 7, "name": "campaign_status", "comment": null}, "ad_group_id": {"type": "bigint", "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": "bigint", "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}, "clicks": {"type": "bigint", "index": 17, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 18, "name": "impressions", "comment": null}, "spend": {"type": "numeric", "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.pinterest.pinterest_ads__pin_promotion_report"}, "model.pinterest.pinterest_ads__url_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_7_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 without time zone", "index": 2, "name": "date_day", "comment": null}, "advertiser_id": {"type": "bigint", "index": 3, "name": "advertiser_id", "comment": null}, "advertiser_name": {"type": "text", "index": 4, "name": "advertiser_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}, "campaign_status": {"type": "text", "index": 7, "name": "campaign_status", "comment": null}, "ad_group_id": {"type": "bigint", "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": "bigint", "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}, "clicks": {"type": "bigint", "index": 24, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 25, "name": "impressions", "comment": null}, "spend": {"type": "numeric", "index": 26, "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.pinterest.pinterest_ads__url_report"}, "model.reddit_ads.reddit_ads__account_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_7_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}}, "stats": {"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": "ad_reporting_integration_tests_7_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}}, "stats": {"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": "ad_reporting_integration_tests_7_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}}, "stats": {"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": "ad_reporting_integration_tests_7_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}}, "stats": {"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": "ad_reporting_integration_tests_7_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}}, "stats": {"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": "ad_reporting_integration_tests_7_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}}, "stats": {"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": "ad_reporting_integration_tests_7_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}}, "stats": {"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": "ad_reporting_integration_tests_7_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}}, "stats": {"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": "ad_reporting_integration_tests_7_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}}, "stats": {"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": "ad_reporting_integration_tests_7_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}}, "stats": {"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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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}}, "stats": {"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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "text", "index": 4, "name": "advertised_asin", "comment": null}, "advertised_sku": {"type": "text", "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}}, "stats": {"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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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}}, "stats": {"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": "ad_reporting_integration_tests_7_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}}, "stats": {"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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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}}, "stats": {"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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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}}, "stats": {"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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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}, "impressions": {"type": "integer", "index": 4, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 5, "name": "spend", "comment": null}, "currency": {"type": "text", "index": 6, "name": "currency", "comment": null}, "new_downloads": {"type": "integer", "index": 7, "name": "new_downloads", "comment": null}, "redownloads": {"type": "integer", "index": 8, "name": "redownloads", "comment": null}, "taps": {"type": "integer", "index": 9, "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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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}, "impressions": {"type": "integer", "index": 6, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 7, "name": "spend", "comment": null}, "currency": {"type": "text", "index": 8, "name": "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"}, "model.apple_search_ads_source.stg_apple_search_ads__ad_report_tmp": {"metadata": {"type": "VIEW", "schema": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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}, "impressions": {"type": "integer", "index": 4, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 5, "name": "spend", "comment": null}, "currency": {"type": "text", "index": 6, "name": "currency", "comment": null}, "new_downloads": {"type": "integer", "index": 7, "name": "new_downloads", "comment": null}, "redownloads": {"type": "integer", "index": 8, "name": "redownloads", "comment": null}, "taps": {"type": "integer", "index": 9, "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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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}, "impressions": {"type": "integer", "index": 4, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 5, "name": "spend", "comment": null}, "currency": {"type": "text", "index": 6, "name": "currency", "comment": null}, "new_downloads": {"type": "integer", "index": 7, "name": "new_downloads", "comment": null}, "redownloads": {"type": "integer", "index": 8, "name": "redownloads", "comment": null}, "taps": {"type": "integer", "index": 9, "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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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}, "impressions": {"type": "integer", "index": 17, "name": "impressions", "comment": null}, "taps": {"type": "integer", "index": 18, "name": "taps", "comment": null}, "new_downloads": {"type": "integer", "index": 19, "name": "new_downloads", "comment": null}, "redownloads": {"type": "integer", "index": 20, "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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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}, "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.facebook_ads_source.stg_facebook_ads__ad_history"}, "model.facebook_ads_source.stg_facebook_ads__ad_history_tmp": {"metadata": {"type": "VIEW", "schema": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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}, "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__ad_set_history"}, "model.facebook_ads_source.stg_facebook_ads__ad_set_history_tmp": {"metadata": {"type": "VIEW", "schema": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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_tmp": {"metadata": {"type": "VIEW", "schema": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "integer", "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": "ad_reporting_integration_tests_7_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}}, "stats": {"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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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}, "clicks": {"type": "integer", "index": 3, "name": "clicks", "comment": null}, "impressions": {"type": "integer", "index": 4, "name": "impressions", "comment": null}, "cost_in_local_currency": {"type": "integer", "index": 5, "name": "cost_in_local_currency", "comment": null}, "cost_in_usd": {"type": "integer", "index": 6, "name": "cost_in_usd", "comment": null}}, "stats": {"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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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}}, "stats": {"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": "ad_reporting_integration_tests_7_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}}, "stats": {"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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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}}, "stats": {"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": "ad_reporting_integration_tests_7_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}}, "stats": {"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": "ad_reporting_integration_tests_7_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}}, "stats": {"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": "ad_reporting_integration_tests_7_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}}, "stats": {"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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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}}, "stats": {"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": "ad_reporting_integration_tests_7_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}, "clicks": {"type": "integer", "index": 13, "name": "clicks", "comment": null}, "impressions": {"type": "integer", "index": 14, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 15, "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.microsoft_ads_source.stg_microsoft_ads__campaign_daily_report_tmp"}, "model.microsoft_ads_source.stg_microsoft_ads__campaign_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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}}, "stats": {"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": "ad_reporting_integration_tests_7_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}}, "stats": {"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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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}}, "stats": {"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": "ad_reporting_integration_tests_7_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}}, "stats": {"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": "ad_reporting_integration_tests_7_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": "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}, "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": "bigint", "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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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 without time zone", "index": 2, "name": "date_day", "comment": null}, "ad_group_id": {"type": "bigint", "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": "bigint", "index": 6, "name": "campaign_id", "comment": null}, "advertiser_id": {"type": "bigint", "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}}, "stats": {"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": "ad_reporting_integration_tests_7_ad_reporting_dev", "name": "stg_pinterest_ads__ad_group_report_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_group_id": {"type": "bigint", "index": 1, "name": "ad_group_id", "comment": null}, "advertiser_id": {"type": "bigint", "index": 2, "name": "advertiser_id", "comment": null}, "date": {"type": "timestamp without time zone", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "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_daily_spend_cap": {"type": "integer", "index": 7, "name": "campaign_daily_spend_cap", "comment": null}, "campaign_id": {"type": "bigint", "index": 8, "name": "campaign_id", "comment": null}, "campaign_lifetime_spend_cap": {"type": "integer", "index": 9, "name": "campaign_lifetime_spend_cap", "comment": null}, "campaign_name": {"type": "text", "index": 10, "name": "campaign_name", "comment": null}, "campaign_status": {"type": "text", "index": 11, "name": "campaign_status", "comment": null}, "clickthrough_1": {"type": "integer", "index": 12, "name": "clickthrough_1", "comment": null}, "clickthrough_1_gross": {"type": "integer", "index": 13, "name": "clickthrough_1_gross", "comment": null}, "cpc_in_micro_dollar": {"type": "double precision", "index": 14, "name": "cpc_in_micro_dollar", "comment": null}, "cpm_in_micro_dollar": {"type": "double precision", "index": 15, "name": "cpm_in_micro_dollar", "comment": null}, "ctr": {"type": "double precision", "index": 16, "name": "ctr", "comment": null}, "ecpc_in_micro_dollar": {"type": "double precision", "index": 17, "name": "ecpc_in_micro_dollar", "comment": null}, "ecpm_in_micro_dollar": {"type": "double precision", "index": 18, "name": "ecpm_in_micro_dollar", "comment": null}, "ectr": {"type": "double precision", "index": 19, "name": "ectr", "comment": null}, "engagement_1": {"type": "integer", "index": 20, "name": "engagement_1", "comment": null}, "impression_1": {"type": "integer", "index": 21, "name": "impression_1", "comment": null}, "impression_1_gross": {"type": "integer", "index": 22, "name": "impression_1_gross", "comment": null}, "outbound_click_1": {"type": "integer", "index": 23, "name": "outbound_click_1", "comment": null}, "paid_impression": {"type": "integer", "index": 24, "name": "paid_impression", "comment": null}, "spend_in_micro_dollar": {"type": "integer", "index": 25, "name": "spend_in_micro_dollar", "comment": null}, "total_engagement": {"type": "integer", "index": 26, "name": "total_engagement", "comment": null}, "total_impression_frequency": {"type": "double precision", "index": 27, "name": "total_impression_frequency", "comment": null}, "total_impression_user": {"type": "integer", "index": 28, "name": "total_impression_user", "comment": null}}, "stats": {"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": "ad_reporting_integration_tests_7_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": "bigint", "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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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 without time zone", "index": 2, "name": "date_day", "comment": null}, "advertiser_id": {"type": "bigint", "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}}, "stats": {"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": "ad_reporting_integration_tests_7_ad_reporting_dev", "name": "stg_pinterest_ads__advertiser_report_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"advertiser_id": {"type": "bigint", "index": 1, "name": "advertiser_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}, "clickthrough_1": {"type": "integer", "index": 4, "name": "clickthrough_1", "comment": null}, "clickthrough_1_gross": {"type": "integer", "index": 5, "name": "clickthrough_1_gross", "comment": null}, "cpc_in_micro_dollar": {"type": "double precision", "index": 6, "name": "cpc_in_micro_dollar", "comment": null}, "cpm_in_micro_dollar": {"type": "double precision", "index": 7, "name": "cpm_in_micro_dollar", "comment": null}, "ctr": {"type": "double precision", "index": 8, "name": "ctr", "comment": null}, "ecpc_in_micro_dollar": {"type": "double precision", "index": 9, "name": "ecpc_in_micro_dollar", "comment": null}, "ecpm_in_micro_dollar": {"type": "double precision", "index": 10, "name": "ecpm_in_micro_dollar", "comment": null}, "ectr": {"type": "double precision", "index": 11, "name": "ectr", "comment": null}, "engagement_1": {"type": "integer", "index": 12, "name": "engagement_1", "comment": null}, "impression_1": {"type": "integer", "index": 13, "name": "impression_1", "comment": null}, "impression_1_gross": {"type": "integer", "index": 14, "name": "impression_1_gross", "comment": null}, "outbound_click_1": {"type": "integer", "index": 15, "name": "outbound_click_1", "comment": null}, "paid_impression": {"type": "integer", "index": 16, "name": "paid_impression", "comment": null}, "spend_in_micro_dollar": {"type": "integer", "index": 17, "name": "spend_in_micro_dollar", "comment": null}, "total_engagement": {"type": "integer", "index": 18, "name": "total_engagement", "comment": null}, "total_impression_frequency": {"type": "double precision", "index": 19, "name": "total_impression_frequency", "comment": null}, "total_impression_user": {"type": "integer", "index": 20, "name": "total_impression_user", "comment": null}}, "stats": {"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": "ad_reporting_integration_tests_7_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": "bigint", "index": 2, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "text", "index": 3, "name": "campaign_name", "comment": null}, "advertiser_id": {"type": "bigint", "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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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 without time zone", "index": 2, "name": "date_day", "comment": null}, "campaign_id": {"type": "bigint", "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": "bigint", "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}}, "stats": {"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": "ad_reporting_integration_tests_7_ad_reporting_dev", "name": "stg_pinterest_ads__campaign_report_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"advertiser_id": {"type": "bigint", "index": 1, "name": "advertiser_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 2, "name": "campaign_id", "comment": null}, "date": {"type": "timestamp without time zone", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "campaign_daily_spend_cap": {"type": "integer", "index": 5, "name": "campaign_daily_spend_cap", "comment": null}, "campaign_lifetime_spend_cap": {"type": "integer", "index": 6, "name": "campaign_lifetime_spend_cap", "comment": null}, "campaign_name": {"type": "text", "index": 7, "name": "campaign_name", "comment": null}, "campaign_status": {"type": "text", "index": 8, "name": "campaign_status", "comment": null}, "clickthrough_1": {"type": "integer", "index": 9, "name": "clickthrough_1", "comment": null}, "clickthrough_1_gross": {"type": "integer", "index": 10, "name": "clickthrough_1_gross", "comment": null}, "cpc_in_micro_dollar": {"type": "double precision", "index": 11, "name": "cpc_in_micro_dollar", "comment": null}, "cpm_in_micro_dollar": {"type": "double precision", "index": 12, "name": "cpm_in_micro_dollar", "comment": null}, "ctr": {"type": "double precision", "index": 13, "name": "ctr", "comment": null}, "ecpc_in_micro_dollar": {"type": "double precision", "index": 14, "name": "ecpc_in_micro_dollar", "comment": null}, "ecpm_in_micro_dollar": {"type": "double precision", "index": 15, "name": "ecpm_in_micro_dollar", "comment": null}, "ectr": {"type": "double precision", "index": 16, "name": "ectr", "comment": null}, "engagement_1": {"type": "integer", "index": 17, "name": "engagement_1", "comment": null}, "impression_1": {"type": "integer", "index": 18, "name": "impression_1", "comment": null}, "impression_1_gross": {"type": "integer", "index": 19, "name": "impression_1_gross", "comment": null}, "outbound_click_1": {"type": "integer", "index": 20, "name": "outbound_click_1", "comment": null}, "paid_impression": {"type": "integer", "index": 21, "name": "paid_impression", "comment": null}, "spend_in_micro_dollar": {"type": "integer", "index": 22, "name": "spend_in_micro_dollar", "comment": null}, "total_engagement": {"type": "integer", "index": 23, "name": "total_engagement", "comment": null}, "total_impression_frequency": {"type": "double precision", "index": 24, "name": "total_impression_frequency", "comment": null}, "total_impression_user": {"type": "integer", "index": 25, "name": "total_impression_user", "comment": null}}, "stats": {"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": "ad_reporting_integration_tests_7_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": "bigint", "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": "bigint", "index": 6, "name": "ad_group_id", "comment": null}, "advertiser_id": {"type": "bigint", "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": "bigint", "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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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 without time zone", "index": 2, "name": "date_day", "comment": null}, "keyword_id": {"type": "bigint", "index": 3, "name": "keyword_id", "comment": null}, "pin_promotion_id": {"type": "bigint", "index": 4, "name": "pin_promotion_id", "comment": null}, "ad_group_id": {"type": "bigint", "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": "bigint", "index": 8, "name": "campaign_id", "comment": null}, "advertiser_id": {"type": "bigint", "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}}, "stats": {"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": "ad_reporting_integration_tests_7_ad_reporting_dev", "name": "stg_pinterest_ads__keyword_report_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_group_id": {"type": "bigint", "index": 1, "name": "ad_group_id", "comment": null}, "advertiser_id": {"type": "bigint", "index": 2, "name": "advertiser_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 3, "name": "campaign_id", "comment": null}, "date": {"type": "timestamp without time zone", "index": 4, "name": "date", "comment": null}, "keyword_id": {"type": "bigint", "index": 5, "name": "keyword_id", "comment": null}, "pin_id": {"type": "bigint", "index": 6, "name": "pin_id", "comment": null}, "pin_promotion_id": {"type": "bigint", "index": 7, "name": "pin_promotion_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 8, "name": "_fivetran_synced", "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}, "campaign_daily_spend_cap": {"type": "integer", "index": 11, "name": "campaign_daily_spend_cap", "comment": null}, "campaign_lifetime_spend_cap": {"type": "integer", "index": 12, "name": "campaign_lifetime_spend_cap", "comment": null}, "campaign_name": {"type": "text", "index": 13, "name": "campaign_name", "comment": null}, "campaign_status": {"type": "text", "index": 14, "name": "campaign_status", "comment": null}, "clickthrough_1": {"type": "integer", "index": 15, "name": "clickthrough_1", "comment": null}, "clickthrough_1_gross": {"type": "integer", "index": 16, "name": "clickthrough_1_gross", "comment": null}, "cpc_in_micro_dollar": {"type": "integer", "index": 17, "name": "cpc_in_micro_dollar", "comment": null}, "cpm_in_micro_dollar": {"type": "double precision", "index": 18, "name": "cpm_in_micro_dollar", "comment": null}, "ctr": {"type": "integer", "index": 19, "name": "ctr", "comment": null}, "ecpc_in_micro_dollar": {"type": "integer", "index": 20, "name": "ecpc_in_micro_dollar", "comment": null}, "ecpm_in_micro_dollar": {"type": "double precision", "index": 21, "name": "ecpm_in_micro_dollar", "comment": null}, "ectr": {"type": "integer", "index": 22, "name": "ectr", "comment": null}, "engagement_1": {"type": "integer", "index": 23, "name": "engagement_1", "comment": null}, "impression_1": {"type": "integer", "index": 24, "name": "impression_1", "comment": null}, "impression_1_gross": {"type": "integer", "index": 25, "name": "impression_1_gross", "comment": null}, "outbound_click_1": {"type": "integer", "index": 26, "name": "outbound_click_1", "comment": null}, "paid_impression": {"type": "integer", "index": 27, "name": "paid_impression", "comment": null}, "pin_promotion_name": {"type": "text", "index": 28, "name": "pin_promotion_name", "comment": null}, "pin_promotion_status": {"type": "text", "index": 29, "name": "pin_promotion_status", "comment": null}, "spend_in_micro_dollar": {"type": "integer", "index": 30, "name": "spend_in_micro_dollar", "comment": null}, "targeting_type": {"type": "text", "index": 31, "name": "targeting_type", "comment": null}, "targeting_value": {"type": "text", "index": 32, "name": "targeting_value", "comment": null}, "total_engagement": {"type": "integer", "index": 33, "name": "total_engagement", "comment": null}}, "stats": {"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": "ad_reporting_integration_tests_7_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": "bigint", "index": 2, "name": "pin_promotion_id", "comment": null}, "advertiser_id": {"type": "bigint", "index": 3, "name": "advertiser_id", "comment": null}, "ad_group_id": {"type": "bigint", "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": "bigint", "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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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 without time zone", "index": 2, "name": "date_day", "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}, "campaign_id": {"type": "bigint", "index": 5, "name": "campaign_id", "comment": null}, "advertiser_id": {"type": "bigint", "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}}, "stats": {"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": "ad_reporting_integration_tests_7_ad_reporting_dev", "name": "stg_pinterest_ads__pin_promotion_report_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date": {"type": "timestamp without time zone", "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": "text", "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}}, "stats": {"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": "ad_reporting_integration_tests_7_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_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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_group": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_7_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_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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}}, "stats": {"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": "ad_reporting_integration_tests_7_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}}, "stats": {"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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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}}, "stats": {"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": "ad_reporting_integration_tests_7_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": "integer", "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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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}}, "stats": {"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": "ad_reporting_integration_tests_7_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": "integer", "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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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}}, "stats": {"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": "ad_reporting_integration_tests_7_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}, "real_time_conversion": {"type": "integer", "index": 4, "name": "real_time_conversion", "comment": null}, "cpc": {"type": "double precision", "index": 5, "name": "cpc", "comment": null}, "video_play_actions": {"type": "integer", "index": 6, "name": "video_play_actions", "comment": null}, "conversion_rate": {"type": "integer", "index": 7, "name": "conversion_rate", "comment": null}, "video_views_p_75": {"type": "integer", "index": 8, "name": "video_views_p_75", "comment": null}, "result": {"type": "integer", "index": 9, "name": "result", "comment": null}, "video_views_p_50": {"type": "integer", "index": 10, "name": "video_views_p_50", "comment": null}, "impressions": {"type": "integer", "index": 11, "name": "impressions", "comment": null}, "comments": {"type": "integer", "index": 12, "name": "comments", "comment": null}, "real_time_cost_per_result": {"type": "double precision", "index": 13, "name": "real_time_cost_per_result", "comment": null}, "conversion": {"type": "integer", "index": 14, "name": "conversion", "comment": null}, "real_time_result": {"type": "integer", "index": 15, "name": "real_time_result", "comment": null}, "video_views_p_100": {"type": "integer", "index": 16, "name": "video_views_p_100", "comment": null}, "shares": {"type": "integer", "index": 17, "name": "shares", "comment": null}, "real_time_conversion_rate": {"type": "double precision", "index": 18, "name": "real_time_conversion_rate", "comment": null}, "cost_per_secondary_goal_result": {"type": "text", "index": 19, "name": "cost_per_secondary_goal_result", "comment": null}, "secondary_goal_result_rate": {"type": "text", "index": 20, "name": "secondary_goal_result_rate", "comment": null}, "clicks": {"type": "integer", "index": 21, "name": "clicks", "comment": null}, "cost_per_1000_reached": {"type": "double precision", "index": 22, "name": "cost_per_1000_reached", "comment": null}, "video_views_p_25": {"type": "integer", "index": 23, "name": "video_views_p_25", "comment": null}, "reach": {"type": "integer", "index": 24, "name": "reach", "comment": null}, "real_time_cost_per_conversion": {"type": "double precision", "index": 25, "name": "real_time_cost_per_conversion", "comment": null}, "profile_visits_rate": {"type": "integer", "index": 26, "name": "profile_visits_rate", "comment": null}, "average_video_play": {"type": "double precision", "index": 27, "name": "average_video_play", "comment": null}, "profile_visits": {"type": "integer", "index": 28, "name": "profile_visits", "comment": null}, "cpm": {"type": "double precision", "index": 29, "name": "cpm", "comment": null}, "ctr": {"type": "double precision", "index": 30, "name": "ctr", "comment": null}, "video_watched_2_s": {"type": "integer", "index": 31, "name": "video_watched_2_s", "comment": null}, "follows": {"type": "integer", "index": 32, "name": "follows", "comment": null}, "result_rate": {"type": "double precision", "index": 33, "name": "result_rate", "comment": null}, "video_watched_6_s": {"type": "integer", "index": 34, "name": "video_watched_6_s", "comment": null}, "secondary_goal_result": {"type": "text", "index": 35, "name": "secondary_goal_result", "comment": null}, "cost_per_result": {"type": "double precision", "index": 36, "name": "cost_per_result", "comment": null}, "average_video_play_per_user": {"type": "double precision", "index": 37, "name": "average_video_play_per_user", "comment": null}, "real_time_result_rate": {"type": "double precision", "index": 38, "name": "real_time_result_rate", "comment": null}, "spend": {"type": "double precision", "index": 39, "name": "spend", "comment": null}, "likes": {"type": "integer", "index": 40, "name": "likes", "comment": null}, "_fivetran_synced": {"type": "text", "index": 41, "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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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}}, "stats": {"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": "ad_reporting_integration_tests_7_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}, "real_time_conversion": {"type": "integer", "index": 4, "name": "real_time_conversion", "comment": null}, "cpc": {"type": "double precision", "index": 5, "name": "cpc", "comment": null}, "video_play_actions": {"type": "integer", "index": 6, "name": "video_play_actions", "comment": null}, "conversion_rate": {"type": "integer", "index": 7, "name": "conversion_rate", "comment": null}, "video_views_p_75": {"type": "integer", "index": 8, "name": "video_views_p_75", "comment": null}, "result": {"type": "integer", "index": 9, "name": "result", "comment": null}, "video_views_p_50": {"type": "integer", "index": 10, "name": "video_views_p_50", "comment": null}, "impressions": {"type": "integer", "index": 11, "name": "impressions", "comment": null}, "comments": {"type": "integer", "index": 12, "name": "comments", "comment": null}, "real_time_cost_per_result": {"type": "double precision", "index": 13, "name": "real_time_cost_per_result", "comment": null}, "conversion": {"type": "integer", "index": 14, "name": "conversion", "comment": null}, "real_time_result": {"type": "integer", "index": 15, "name": "real_time_result", "comment": null}, "video_views_p_100": {"type": "integer", "index": 16, "name": "video_views_p_100", "comment": null}, "shares": {"type": "integer", "index": 17, "name": "shares", "comment": null}, "real_time_conversion_rate": {"type": "integer", "index": 18, "name": "real_time_conversion_rate", "comment": null}, "cost_per_secondary_goal_result": {"type": "text", "index": 19, "name": "cost_per_secondary_goal_result", "comment": null}, "secondary_goal_result_rate": {"type": "text", "index": 20, "name": "secondary_goal_result_rate", "comment": null}, "clicks": {"type": "integer", "index": 21, "name": "clicks", "comment": null}, "cost_per_1000_reached": {"type": "integer", "index": 22, "name": "cost_per_1000_reached", "comment": null}, "video_views_p_25": {"type": "integer", "index": 23, "name": "video_views_p_25", "comment": null}, "reach": {"type": "integer", "index": 24, "name": "reach", "comment": null}, "real_time_cost_per_conversion": {"type": "double precision", "index": 25, "name": "real_time_cost_per_conversion", "comment": null}, "profile_visits_rate": {"type": "integer", "index": 26, "name": "profile_visits_rate", "comment": null}, "average_video_play": {"type": "double precision", "index": 27, "name": "average_video_play", "comment": null}, "profile_visits": {"type": "integer", "index": 28, "name": "profile_visits", "comment": null}, "cpm": {"type": "double precision", "index": 29, "name": "cpm", "comment": null}, "ctr": {"type": "double precision", "index": 30, "name": "ctr", "comment": null}, "video_watched_2_s": {"type": "integer", "index": 31, "name": "video_watched_2_s", "comment": null}, "follows": {"type": "integer", "index": 32, "name": "follows", "comment": null}, "result_rate": {"type": "integer", "index": 33, "name": "result_rate", "comment": null}, "video_watched_6_s": {"type": "integer", "index": 34, "name": "video_watched_6_s", "comment": null}, "secondary_goal_result": {"type": "text", "index": 35, "name": "secondary_goal_result", "comment": null}, "cost_per_result": {"type": "double precision", "index": 36, "name": "cost_per_result", "comment": null}, "average_video_play_per_user": {"type": "integer", "index": 37, "name": "average_video_play_per_user", "comment": null}, "real_time_result_rate": {"type": "integer", "index": 38, "name": "real_time_result_rate", "comment": null}, "spend": {"type": "double precision", "index": 39, "name": "spend", "comment": null}, "likes": {"type": "integer", "index": 40, "name": "likes", "comment": null}, "_fivetran_synced": {"type": "text", "index": 41, "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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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}}, "stats": {"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": "ad_reporting_integration_tests_7_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}, "real_time_conversion": {"type": "integer", "index": 4, "name": "real_time_conversion", "comment": null}, "cpc": {"type": "double precision", "index": 5, "name": "cpc", "comment": null}, "video_play_actions": {"type": "integer", "index": 6, "name": "video_play_actions", "comment": null}, "conversion_rate": {"type": "integer", "index": 7, "name": "conversion_rate", "comment": null}, "video_views_p_75": {"type": "integer", "index": 8, "name": "video_views_p_75", "comment": null}, "result": {"type": "integer", "index": 9, "name": "result", "comment": null}, "video_views_p_50": {"type": "integer", "index": 10, "name": "video_views_p_50", "comment": null}, "impressions": {"type": "integer", "index": 11, "name": "impressions", "comment": null}, "comments": {"type": "integer", "index": 12, "name": "comments", "comment": null}, "real_time_cost_per_result": {"type": "double precision", "index": 13, "name": "real_time_cost_per_result", "comment": null}, "conversion": {"type": "integer", "index": 14, "name": "conversion", "comment": null}, "real_time_result": {"type": "integer", "index": 15, "name": "real_time_result", "comment": null}, "video_views_p_100": {"type": "integer", "index": 16, "name": "video_views_p_100", "comment": null}, "shares": {"type": "integer", "index": 17, "name": "shares", "comment": null}, "real_time_conversion_rate": {"type": "double precision", "index": 18, "name": "real_time_conversion_rate", "comment": null}, "cost_per_secondary_goal_result": {"type": "text", "index": 19, "name": "cost_per_secondary_goal_result", "comment": null}, "secondary_goal_result_rate": {"type": "text", "index": 20, "name": "secondary_goal_result_rate", "comment": null}, "clicks": {"type": "integer", "index": 21, "name": "clicks", "comment": null}, "cost_per_1000_reached": {"type": "double precision", "index": 22, "name": "cost_per_1000_reached", "comment": null}, "video_views_p_25": {"type": "integer", "index": 23, "name": "video_views_p_25", "comment": null}, "reach": {"type": "integer", "index": 24, "name": "reach", "comment": null}, "real_time_cost_per_conversion": {"type": "double precision", "index": 25, "name": "real_time_cost_per_conversion", "comment": null}, "profile_visits_rate": {"type": "integer", "index": 26, "name": "profile_visits_rate", "comment": null}, "average_video_play": {"type": "double precision", "index": 27, "name": "average_video_play", "comment": null}, "profile_visits": {"type": "integer", "index": 28, "name": "profile_visits", "comment": null}, "cpm": {"type": "double precision", "index": 29, "name": "cpm", "comment": null}, "ctr": {"type": "double precision", "index": 30, "name": "ctr", "comment": null}, "video_watched_2_s": {"type": "integer", "index": 31, "name": "video_watched_2_s", "comment": null}, "follows": {"type": "integer", "index": 32, "name": "follows", "comment": null}, "result_rate": {"type": "double precision", "index": 33, "name": "result_rate", "comment": null}, "video_watched_6_s": {"type": "integer", "index": 34, "name": "video_watched_6_s", "comment": null}, "secondary_goal_result": {"type": "text", "index": 35, "name": "secondary_goal_result", "comment": null}, "cost_per_result": {"type": "double precision", "index": 36, "name": "cost_per_result", "comment": null}, "average_video_play_per_user": {"type": "double precision", "index": 37, "name": "average_video_play_per_user", "comment": null}, "real_time_result_rate": {"type": "double precision", "index": 38, "name": "real_time_result_rate", "comment": null}, "spend": {"type": "double precision", "index": 39, "name": "spend", "comment": null}, "likes": {"type": "integer", "index": 40, "name": "likes", "comment": null}, "_fivetran_synced": {"type": "text", "index": 41, "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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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}}, "stats": {"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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_7_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}}, "stats": {"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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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}}, "stats": {"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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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}, "daily_cpc": {"type": "double precision", "index": 29, "name": "daily_cpc", "comment": null}, "daily_cpm": {"type": "double precision", "index": 30, "name": "daily_cpm", "comment": null}, "daily_ctr": {"type": "bigint", "index": 31, "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": "ad_reporting_integration_tests_7_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}, "daily_cpc": {"type": "double precision", "index": 31, "name": "daily_cpc", "comment": null}, "daily_cpm": {"type": "double precision", "index": 32, "name": "daily_cpm", "comment": null}, "daily_ctr": {"type": "bigint", "index": 33, "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": "ad_reporting_integration_tests_7_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}, "daily_cpc": {"type": "double precision", "index": 21, "name": "daily_cpc", "comment": null}, "daily_cpm": {"type": "double precision", "index": 22, "name": "daily_cpm", "comment": null}, "daily_ctr": {"type": "bigint", "index": 23, "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": "ad_reporting_integration_tests_7_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}, "daily_cpc": {"type": "double precision", "index": 23, "name": "daily_cpc", "comment": null}, "daily_cpm": {"type": "double precision", "index": 24, "name": "daily_cpm", "comment": null}, "daily_ctr": {"type": "bigint", "index": 25, "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": "ad_reporting_integration_tests_7_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}, "daily_cpc": {"type": "double precision", "index": 39, "name": "daily_cpc", "comment": null}, "daily_cpm": {"type": "double precision", "index": 40, "name": "daily_cpm", "comment": null}, "daily_ctr": {"type": "bigint", "index": 41, "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": "ad_reporting_integration_tests_7_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}}, "stats": {"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": "ad_reporting_integration_tests_7_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}}, "stats": {"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__line_item_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_7_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}}, "stats": {"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": "ad_reporting_integration_tests_7_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}}, "stats": {"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": "ad_reporting_integration_tests_7_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}}, "stats": {"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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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}}, "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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}}, "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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}, "clicks": {"type": "integer", "index": 3, "name": "clicks", "comment": null}, "impressions": {"type": "integer", "index": 4, "name": "impressions", "comment": null}, "cost_in_local_currency": {"type": "integer", "index": 5, "name": "cost_in_local_currency", "comment": null}, "cost_in_usd": {"type": "integer", "index": 6, "name": "cost_in_usd", "comment": null}}, "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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}}, "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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}}, "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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}}, "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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}, "clicks": {"type": "integer", "index": 13, "name": "clicks", "comment": null}, "impressions": {"type": "integer", "index": 14, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 15, "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.microsoft_ads_source.microsoft_ads.campaign_performance_daily_report"}, "source.microsoft_ads_source.microsoft_ads.keyword_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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}}, "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": "ad_reporting_integration_tests_7", "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}}, "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "name": "pinterest_ad_group_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_group_id": {"type": "bigint", "index": 1, "name": "ad_group_id", "comment": null}, "advertiser_id": {"type": "bigint", "index": 2, "name": "advertiser_id", "comment": null}, "date": {"type": "timestamp without time zone", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "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_daily_spend_cap": {"type": "integer", "index": 7, "name": "campaign_daily_spend_cap", "comment": null}, "campaign_id": {"type": "bigint", "index": 8, "name": "campaign_id", "comment": null}, "campaign_lifetime_spend_cap": {"type": "integer", "index": 9, "name": "campaign_lifetime_spend_cap", "comment": null}, "campaign_name": {"type": "text", "index": 10, "name": "campaign_name", "comment": null}, "campaign_status": {"type": "text", "index": 11, "name": "campaign_status", "comment": null}, "clickthrough_1": {"type": "integer", "index": 12, "name": "clickthrough_1", "comment": null}, "clickthrough_1_gross": {"type": "integer", "index": 13, "name": "clickthrough_1_gross", "comment": null}, "cpc_in_micro_dollar": {"type": "double precision", "index": 14, "name": "cpc_in_micro_dollar", "comment": null}, "cpm_in_micro_dollar": {"type": "double precision", "index": 15, "name": "cpm_in_micro_dollar", "comment": null}, "ctr": {"type": "double precision", "index": 16, "name": "ctr", "comment": null}, "ecpc_in_micro_dollar": {"type": "double precision", "index": 17, "name": "ecpc_in_micro_dollar", "comment": null}, "ecpm_in_micro_dollar": {"type": "double precision", "index": 18, "name": "ecpm_in_micro_dollar", "comment": null}, "ectr": {"type": "double precision", "index": 19, "name": "ectr", "comment": null}, "engagement_1": {"type": "integer", "index": 20, "name": "engagement_1", "comment": null}, "impression_1": {"type": "integer", "index": 21, "name": "impression_1", "comment": null}, "impression_1_gross": {"type": "integer", "index": 22, "name": "impression_1_gross", "comment": null}, "outbound_click_1": {"type": "integer", "index": 23, "name": "outbound_click_1", "comment": null}, "paid_impression": {"type": "integer", "index": 24, "name": "paid_impression", "comment": null}, "spend_in_micro_dollar": {"type": "integer", "index": 25, "name": "spend_in_micro_dollar", "comment": null}, "total_engagement": {"type": "integer", "index": 26, "name": "total_engagement", "comment": null}, "total_impression_frequency": {"type": "double precision", "index": 27, "name": "total_impression_frequency", "comment": null}, "total_impression_user": {"type": "integer", "index": 28, "name": "total_impression_user", "comment": null}}, "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "name": "pinterest_advertiser_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"advertiser_id": {"type": "bigint", "index": 1, "name": "advertiser_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}, "clickthrough_1": {"type": "integer", "index": 4, "name": "clickthrough_1", "comment": null}, "clickthrough_1_gross": {"type": "integer", "index": 5, "name": "clickthrough_1_gross", "comment": null}, "cpc_in_micro_dollar": {"type": "double precision", "index": 6, "name": "cpc_in_micro_dollar", "comment": null}, "cpm_in_micro_dollar": {"type": "double precision", "index": 7, "name": "cpm_in_micro_dollar", "comment": null}, "ctr": {"type": "double precision", "index": 8, "name": "ctr", "comment": null}, "ecpc_in_micro_dollar": {"type": "double precision", "index": 9, "name": "ecpc_in_micro_dollar", "comment": null}, "ecpm_in_micro_dollar": {"type": "double precision", "index": 10, "name": "ecpm_in_micro_dollar", "comment": null}, "ectr": {"type": "double precision", "index": 11, "name": "ectr", "comment": null}, "engagement_1": {"type": "integer", "index": 12, "name": "engagement_1", "comment": null}, "impression_1": {"type": "integer", "index": 13, "name": "impression_1", "comment": null}, "impression_1_gross": {"type": "integer", "index": 14, "name": "impression_1_gross", "comment": null}, "outbound_click_1": {"type": "integer", "index": 15, "name": "outbound_click_1", "comment": null}, "paid_impression": {"type": "integer", "index": 16, "name": "paid_impression", "comment": null}, "spend_in_micro_dollar": {"type": "integer", "index": 17, "name": "spend_in_micro_dollar", "comment": null}, "total_engagement": {"type": "integer", "index": 18, "name": "total_engagement", "comment": null}, "total_impression_frequency": {"type": "double precision", "index": 19, "name": "total_impression_frequency", "comment": null}, "total_impression_user": {"type": "integer", "index": 20, "name": "total_impression_user", "comment": null}}, "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "name": "pinterest_campaign_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"advertiser_id": {"type": "bigint", "index": 1, "name": "advertiser_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 2, "name": "campaign_id", "comment": null}, "date": {"type": "timestamp without time zone", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "campaign_daily_spend_cap": {"type": "integer", "index": 5, "name": "campaign_daily_spend_cap", "comment": null}, "campaign_lifetime_spend_cap": {"type": "integer", "index": 6, "name": "campaign_lifetime_spend_cap", "comment": null}, "campaign_name": {"type": "text", "index": 7, "name": "campaign_name", "comment": null}, "campaign_status": {"type": "text", "index": 8, "name": "campaign_status", "comment": null}, "clickthrough_1": {"type": "integer", "index": 9, "name": "clickthrough_1", "comment": null}, "clickthrough_1_gross": {"type": "integer", "index": 10, "name": "clickthrough_1_gross", "comment": null}, "cpc_in_micro_dollar": {"type": "double precision", "index": 11, "name": "cpc_in_micro_dollar", "comment": null}, "cpm_in_micro_dollar": {"type": "double precision", "index": 12, "name": "cpm_in_micro_dollar", "comment": null}, "ctr": {"type": "double precision", "index": 13, "name": "ctr", "comment": null}, "ecpc_in_micro_dollar": {"type": "double precision", "index": 14, "name": "ecpc_in_micro_dollar", "comment": null}, "ecpm_in_micro_dollar": {"type": "double precision", "index": 15, "name": "ecpm_in_micro_dollar", "comment": null}, "ectr": {"type": "double precision", "index": 16, "name": "ectr", "comment": null}, "engagement_1": {"type": "integer", "index": 17, "name": "engagement_1", "comment": null}, "impression_1": {"type": "integer", "index": 18, "name": "impression_1", "comment": null}, "impression_1_gross": {"type": "integer", "index": 19, "name": "impression_1_gross", "comment": null}, "outbound_click_1": {"type": "integer", "index": 20, "name": "outbound_click_1", "comment": null}, "paid_impression": {"type": "integer", "index": 21, "name": "paid_impression", "comment": null}, "spend_in_micro_dollar": {"type": "integer", "index": 22, "name": "spend_in_micro_dollar", "comment": null}, "total_engagement": {"type": "integer", "index": 23, "name": "total_engagement", "comment": null}, "total_impression_frequency": {"type": "double precision", "index": 24, "name": "total_impression_frequency", "comment": null}, "total_impression_user": {"type": "integer", "index": 25, "name": "total_impression_user", "comment": null}}, "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "name": "pinterest_keyword_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_group_id": {"type": "bigint", "index": 1, "name": "ad_group_id", "comment": null}, "advertiser_id": {"type": "bigint", "index": 2, "name": "advertiser_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 3, "name": "campaign_id", "comment": null}, "date": {"type": "timestamp without time zone", "index": 4, "name": "date", "comment": null}, "keyword_id": {"type": "bigint", "index": 5, "name": "keyword_id", "comment": null}, "pin_id": {"type": "bigint", "index": 6, "name": "pin_id", "comment": null}, "pin_promotion_id": {"type": "bigint", "index": 7, "name": "pin_promotion_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 8, "name": "_fivetran_synced", "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}, "campaign_daily_spend_cap": {"type": "integer", "index": 11, "name": "campaign_daily_spend_cap", "comment": null}, "campaign_lifetime_spend_cap": {"type": "integer", "index": 12, "name": "campaign_lifetime_spend_cap", "comment": null}, "campaign_name": {"type": "text", "index": 13, "name": "campaign_name", "comment": null}, "campaign_status": {"type": "text", "index": 14, "name": "campaign_status", "comment": null}, "clickthrough_1": {"type": "integer", "index": 15, "name": "clickthrough_1", "comment": null}, "clickthrough_1_gross": {"type": "integer", "index": 16, "name": "clickthrough_1_gross", "comment": null}, "cpc_in_micro_dollar": {"type": "integer", "index": 17, "name": "cpc_in_micro_dollar", "comment": null}, "cpm_in_micro_dollar": {"type": "double precision", "index": 18, "name": "cpm_in_micro_dollar", "comment": null}, "ctr": {"type": "integer", "index": 19, "name": "ctr", "comment": null}, "ecpc_in_micro_dollar": {"type": "integer", "index": 20, "name": "ecpc_in_micro_dollar", "comment": null}, "ecpm_in_micro_dollar": {"type": "double precision", "index": 21, "name": "ecpm_in_micro_dollar", "comment": null}, "ectr": {"type": "integer", "index": 22, "name": "ectr", "comment": null}, "engagement_1": {"type": "integer", "index": 23, "name": "engagement_1", "comment": null}, "impression_1": {"type": "integer", "index": 24, "name": "impression_1", "comment": null}, "impression_1_gross": {"type": "integer", "index": 25, "name": "impression_1_gross", "comment": null}, "outbound_click_1": {"type": "integer", "index": 26, "name": "outbound_click_1", "comment": null}, "paid_impression": {"type": "integer", "index": 27, "name": "paid_impression", "comment": null}, "pin_promotion_name": {"type": "text", "index": 28, "name": "pin_promotion_name", "comment": null}, "pin_promotion_status": {"type": "text", "index": 29, "name": "pin_promotion_status", "comment": null}, "spend_in_micro_dollar": {"type": "integer", "index": 30, "name": "spend_in_micro_dollar", "comment": null}, "targeting_type": {"type": "text", "index": 31, "name": "targeting_type", "comment": null}, "targeting_value": {"type": "text", "index": 32, "name": "targeting_value", "comment": null}, "total_engagement": {"type": "integer", "index": 33, "name": "total_engagement", "comment": null}}, "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "name": "pinterest_pin_promotion_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date": {"type": "timestamp without time zone", "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": "text", "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}}, "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": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_7", "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": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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}}, "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "integer", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "integer", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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}, "real_time_conversion": {"type": "integer", "index": 4, "name": "real_time_conversion", "comment": null}, "cpc": {"type": "double precision", "index": 5, "name": "cpc", "comment": null}, "video_play_actions": {"type": "integer", "index": 6, "name": "video_play_actions", "comment": null}, "conversion_rate": {"type": "integer", "index": 7, "name": "conversion_rate", "comment": null}, "video_views_p_75": {"type": "integer", "index": 8, "name": "video_views_p_75", "comment": null}, "result": {"type": "integer", "index": 9, "name": "result", "comment": null}, "video_views_p_50": {"type": "integer", "index": 10, "name": "video_views_p_50", "comment": null}, "impressions": {"type": "integer", "index": 11, "name": "impressions", "comment": null}, "comments": {"type": "integer", "index": 12, "name": "comments", "comment": null}, "real_time_cost_per_result": {"type": "double precision", "index": 13, "name": "real_time_cost_per_result", "comment": null}, "conversion": {"type": "integer", "index": 14, "name": "conversion", "comment": null}, "real_time_result": {"type": "integer", "index": 15, "name": "real_time_result", "comment": null}, "video_views_p_100": {"type": "integer", "index": 16, "name": "video_views_p_100", "comment": null}, "shares": {"type": "integer", "index": 17, "name": "shares", "comment": null}, "real_time_conversion_rate": {"type": "integer", "index": 18, "name": "real_time_conversion_rate", "comment": null}, "cost_per_secondary_goal_result": {"type": "text", "index": 19, "name": "cost_per_secondary_goal_result", "comment": null}, "secondary_goal_result_rate": {"type": "text", "index": 20, "name": "secondary_goal_result_rate", "comment": null}, "clicks": {"type": "integer", "index": 21, "name": "clicks", "comment": null}, "cost_per_1000_reached": {"type": "integer", "index": 22, "name": "cost_per_1000_reached", "comment": null}, "video_views_p_25": {"type": "integer", "index": 23, "name": "video_views_p_25", "comment": null}, "reach": {"type": "integer", "index": 24, "name": "reach", "comment": null}, "real_time_cost_per_conversion": {"type": "double precision", "index": 25, "name": "real_time_cost_per_conversion", "comment": null}, "profile_visits_rate": {"type": "integer", "index": 26, "name": "profile_visits_rate", "comment": null}, "average_video_play": {"type": "double precision", "index": 27, "name": "average_video_play", "comment": null}, "profile_visits": {"type": "integer", "index": 28, "name": "profile_visits", "comment": null}, "cpm": {"type": "double precision", "index": 29, "name": "cpm", "comment": null}, "ctr": {"type": "double precision", "index": 30, "name": "ctr", "comment": null}, "video_watched_2_s": {"type": "integer", "index": 31, "name": "video_watched_2_s", "comment": null}, "follows": {"type": "integer", "index": 32, "name": "follows", "comment": null}, "result_rate": {"type": "integer", "index": 33, "name": "result_rate", "comment": null}, "video_watched_6_s": {"type": "integer", "index": 34, "name": "video_watched_6_s", "comment": null}, "secondary_goal_result": {"type": "text", "index": 35, "name": "secondary_goal_result", "comment": null}, "cost_per_result": {"type": "double precision", "index": 36, "name": "cost_per_result", "comment": null}, "average_video_play_per_user": {"type": "integer", "index": 37, "name": "average_video_play_per_user", "comment": null}, "real_time_result_rate": {"type": "integer", "index": 38, "name": "real_time_result_rate", "comment": null}, "spend": {"type": "double precision", "index": 39, "name": "spend", "comment": null}, "likes": {"type": "integer", "index": 40, "name": "likes", "comment": null}, "_fivetran_synced": {"type": "text", "index": 41, "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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}, "real_time_conversion": {"type": "integer", "index": 4, "name": "real_time_conversion", "comment": null}, "cpc": {"type": "double precision", "index": 5, "name": "cpc", "comment": null}, "video_play_actions": {"type": "integer", "index": 6, "name": "video_play_actions", "comment": null}, "conversion_rate": {"type": "integer", "index": 7, "name": "conversion_rate", "comment": null}, "video_views_p_75": {"type": "integer", "index": 8, "name": "video_views_p_75", "comment": null}, "result": {"type": "integer", "index": 9, "name": "result", "comment": null}, "video_views_p_50": {"type": "integer", "index": 10, "name": "video_views_p_50", "comment": null}, "impressions": {"type": "integer", "index": 11, "name": "impressions", "comment": null}, "comments": {"type": "integer", "index": 12, "name": "comments", "comment": null}, "real_time_cost_per_result": {"type": "double precision", "index": 13, "name": "real_time_cost_per_result", "comment": null}, "conversion": {"type": "integer", "index": 14, "name": "conversion", "comment": null}, "real_time_result": {"type": "integer", "index": 15, "name": "real_time_result", "comment": null}, "video_views_p_100": {"type": "integer", "index": 16, "name": "video_views_p_100", "comment": null}, "shares": {"type": "integer", "index": 17, "name": "shares", "comment": null}, "real_time_conversion_rate": {"type": "double precision", "index": 18, "name": "real_time_conversion_rate", "comment": null}, "cost_per_secondary_goal_result": {"type": "text", "index": 19, "name": "cost_per_secondary_goal_result", "comment": null}, "secondary_goal_result_rate": {"type": "text", "index": 20, "name": "secondary_goal_result_rate", "comment": null}, "clicks": {"type": "integer", "index": 21, "name": "clicks", "comment": null}, "cost_per_1000_reached": {"type": "double precision", "index": 22, "name": "cost_per_1000_reached", "comment": null}, "video_views_p_25": {"type": "integer", "index": 23, "name": "video_views_p_25", "comment": null}, "reach": {"type": "integer", "index": 24, "name": "reach", "comment": null}, "real_time_cost_per_conversion": {"type": "double precision", "index": 25, "name": "real_time_cost_per_conversion", "comment": null}, "profile_visits_rate": {"type": "integer", "index": 26, "name": "profile_visits_rate", "comment": null}, "average_video_play": {"type": "double precision", "index": 27, "name": "average_video_play", "comment": null}, "profile_visits": {"type": "integer", "index": 28, "name": "profile_visits", "comment": null}, "cpm": {"type": "double precision", "index": 29, "name": "cpm", "comment": null}, "ctr": {"type": "double precision", "index": 30, "name": "ctr", "comment": null}, "video_watched_2_s": {"type": "integer", "index": 31, "name": "video_watched_2_s", "comment": null}, "follows": {"type": "integer", "index": 32, "name": "follows", "comment": null}, "result_rate": {"type": "double precision", "index": 33, "name": "result_rate", "comment": null}, "video_watched_6_s": {"type": "integer", "index": 34, "name": "video_watched_6_s", "comment": null}, "secondary_goal_result": {"type": "text", "index": 35, "name": "secondary_goal_result", "comment": null}, "cost_per_result": {"type": "double precision", "index": 36, "name": "cost_per_result", "comment": null}, "average_video_play_per_user": {"type": "double precision", "index": 37, "name": "average_video_play_per_user", "comment": null}, "real_time_result_rate": {"type": "double precision", "index": 38, "name": "real_time_result_rate", "comment": null}, "spend": {"type": "double precision", "index": 39, "name": "spend", "comment": null}, "likes": {"type": "integer", "index": 40, "name": "likes", "comment": null}, "_fivetran_synced": {"type": "text", "index": 41, "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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}, "real_time_conversion": {"type": "integer", "index": 4, "name": "real_time_conversion", "comment": null}, "cpc": {"type": "double precision", "index": 5, "name": "cpc", "comment": null}, "video_play_actions": {"type": "integer", "index": 6, "name": "video_play_actions", "comment": null}, "conversion_rate": {"type": "integer", "index": 7, "name": "conversion_rate", "comment": null}, "video_views_p_75": {"type": "integer", "index": 8, "name": "video_views_p_75", "comment": null}, "result": {"type": "integer", "index": 9, "name": "result", "comment": null}, "video_views_p_50": {"type": "integer", "index": 10, "name": "video_views_p_50", "comment": null}, "impressions": {"type": "integer", "index": 11, "name": "impressions", "comment": null}, "comments": {"type": "integer", "index": 12, "name": "comments", "comment": null}, "real_time_cost_per_result": {"type": "double precision", "index": 13, "name": "real_time_cost_per_result", "comment": null}, "conversion": {"type": "integer", "index": 14, "name": "conversion", "comment": null}, "real_time_result": {"type": "integer", "index": 15, "name": "real_time_result", "comment": null}, "video_views_p_100": {"type": "integer", "index": 16, "name": "video_views_p_100", "comment": null}, "shares": {"type": "integer", "index": 17, "name": "shares", "comment": null}, "real_time_conversion_rate": {"type": "double precision", "index": 18, "name": "real_time_conversion_rate", "comment": null}, "cost_per_secondary_goal_result": {"type": "text", "index": 19, "name": "cost_per_secondary_goal_result", "comment": null}, "secondary_goal_result_rate": {"type": "text", "index": 20, "name": "secondary_goal_result_rate", "comment": null}, "clicks": {"type": "integer", "index": 21, "name": "clicks", "comment": null}, "cost_per_1000_reached": {"type": "double precision", "index": 22, "name": "cost_per_1000_reached", "comment": null}, "video_views_p_25": {"type": "integer", "index": 23, "name": "video_views_p_25", "comment": null}, "reach": {"type": "integer", "index": 24, "name": "reach", "comment": null}, "real_time_cost_per_conversion": {"type": "double precision", "index": 25, "name": "real_time_cost_per_conversion", "comment": null}, "profile_visits_rate": {"type": "integer", "index": 26, "name": "profile_visits_rate", "comment": null}, "average_video_play": {"type": "double precision", "index": 27, "name": "average_video_play", "comment": null}, "profile_visits": {"type": "integer", "index": 28, "name": "profile_visits", "comment": null}, "cpm": {"type": "double precision", "index": 29, "name": "cpm", "comment": null}, "ctr": {"type": "double precision", "index": 30, "name": "ctr", "comment": null}, "video_watched_2_s": {"type": "integer", "index": 31, "name": "video_watched_2_s", "comment": null}, "follows": {"type": "integer", "index": 32, "name": "follows", "comment": null}, "result_rate": {"type": "double precision", "index": 33, "name": "result_rate", "comment": null}, "video_watched_6_s": {"type": "integer", "index": 34, "name": "video_watched_6_s", "comment": null}, "secondary_goal_result": {"type": "text", "index": 35, "name": "secondary_goal_result", "comment": null}, "cost_per_result": {"type": "double precision", "index": 36, "name": "cost_per_result", "comment": null}, "average_video_play_per_user": {"type": "double precision", "index": 37, "name": "average_video_play_per_user", "comment": null}, "real_time_result_rate": {"type": "double precision", "index": 38, "name": "real_time_result_rate", "comment": null}, "spend": {"type": "double precision", "index": 39, "name": "spend", "comment": null}, "likes": {"type": "integer", "index": 40, "name": "likes", "comment": null}, "_fivetran_synced": {"type": "text", "index": 41, "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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": "ad_reporting_integration_tests_7", "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 46549bb..678cef3 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.4", "generated_at": "2024-07-29T18:33:13.686375Z", "invocation_id": "a0a5b15e-aa7f-4333-9bae-f6be74a9a347", "env": {}, "project_name": "ad_reporting_integration_tests", "project_id": "9bf57d857f8bb3abf75f1b334ad30f3c", "user_id": "2bfa9082-ea6e-467b-abdc-d0514ab111d9", "send_anonymous_usage_stats": true, "adapter_type": "postgres"}, "nodes": {"seed.ad_reporting_integration_tests.twitter_line_item_history_data": {"database": "postgres", "schema": "ad_reporting_docs", "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": true}, "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','postgres') else false }}"}, "created_at": 1722277884.119583, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"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": "postgres", "schema": "ad_reporting_docs", "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": true}, "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','postgres') else false }}"}, "created_at": 1722277884.130642, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"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": "postgres", "schema": "ad_reporting_docs", "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": true}, "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','postgres') else false }}"}, "created_at": 1722277884.131986, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"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": "postgres", "schema": "ad_reporting_docs", "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": true}, "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','postgres') 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": 1722277884.133387, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"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": "postgres", "schema": "ad_reporting_docs", "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": true}, "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','postgres') else false }}", "column_types": {"created_time": "timestamp", "last_modified_time": "timestamp", "account_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1722277884.134828, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"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": "postgres", "schema": "ad_reporting_docs", "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": "46fc926a1182c51ea670ec916f3a86dfa2f20d5553227275682310462caaa849"}, "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": true}, "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','postgres') 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": 1722277884.1362162, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"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": "postgres", "schema": "ad_reporting_docs", "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": true}, "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','postgres') else false }}", "column_types": {"account_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1722277884.137565, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"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": "postgres", "schema": "ad_reporting_docs", "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": true}, "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','postgres') else false }}"}, "created_at": 1722277884.1388412, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"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": "postgres", "schema": "ad_reporting_docs", "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": "24aab796f90b4c8d3376f138913e0070b2295af6744e8aeef1a5a68b06c4f32b"}, "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": true}, "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','postgres') 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": 1722277884.1401758, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"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": "postgres", "schema": "ad_reporting_docs", "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": true}, "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','postgres') else false }}"}, "created_at": 1722277884.141531, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"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": "postgres", "schema": "ad_reporting_docs", "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": true}, "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','postgres') 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": 1722277884.142838, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"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.amazon_ads_campaign_level_report_data": {"database": "postgres", "schema": "ad_reporting_docs", "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": "cbc70c680495e7d44578ce6d3fd1b457ee27b6093e06d6ed5f69e8ef643ca23c"}, "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": true}, "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','postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "campaign_budget_amount": "float", "click_through_rate": "float"}}, "created_at": 1722277884.1441789, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"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": "postgres", "schema": "ad_reporting_docs", "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": "6451df695a92aca87f55fdc197110c9e91d5b1663808905afa2f031527fa3947"}, "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": true}, "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','postgres') 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": 1722277884.145549, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"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": "postgres", "schema": "ad_reporting_docs", "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": true}, "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','postgres') else false }}", "column_types": {"modification_time": "timestamp", "start_time": "timestamp", "end_time": "timestamp"}}, "created_at": 1722277884.14742, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"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.twitter_account_report_data": {"database": "postgres", "schema": "ad_reporting_docs", "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": true}, "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','postgres') else false }}"}, "created_at": 1722277884.148723, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"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": "postgres", "schema": "ad_reporting_docs", "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": true}, "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','postgres') else false }}", "column_types": {"id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "account_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1722277884.1500008, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"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": "postgres", "schema": "ad_reporting_docs", "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": true}, "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','postgres') else false }}", "column_types": {"created_time": "timestamp", "last_modified_time": "timestamp"}}, "created_at": 1722277884.15132, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"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": "postgres", "schema": "ad_reporting_docs", "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": true}, "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','postgres') else false }}"}, "created_at": 1722277884.152598, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"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": "postgres", "schema": "ad_reporting_docs", "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": true}, "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','postgres') else false }}"}, "created_at": 1722277884.153873, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"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": "postgres", "schema": "ad_reporting_docs", "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": true}, "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','postgres') else false }}", "column_types": {"modification_time": "timestamp", "start_time": "timestamp", "end_time": "timestamp"}}, "created_at": 1722277884.155168, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"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.linkedin_ad_campaign_group_history_data": {"database": "postgres", "schema": "ad_reporting_docs", "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": true}, "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','postgres') else false }}", "column_types": {"created_time": "timestamp", "last_modified_time": "timestamp", "account_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1722277884.156498, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"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": "postgres", "schema": "ad_reporting_docs", "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": "d1a7a977ede788e2610dc21decfb57c226253807e9780784d17a06175f9adef8"}, "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": true}, "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','postgres') 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": 1722277884.157856, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"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": "postgres", "schema": "ad_reporting_docs", "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": true}, "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','postgres') else false }}"}, "created_at": 1722277884.1592052, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"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": "postgres", "schema": "ad_reporting_docs", "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": true}, "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','postgres') 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": 1722277884.1605408, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"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": "postgres", "schema": "ad_reporting_docs", "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": true}, "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','postgres') 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": 1722277884.1618948, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"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": "postgres", "schema": "ad_reporting_docs", "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": true}, "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','postgres') else false }}", "column_types": {"name": "{{ 'string' if target.name in ['bigquery','spark', 'databricks'] else 'varchar' }}"}}, "created_at": 1722277884.163218, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"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": "postgres", "schema": "ad_reporting_docs", "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": "38506b413bb9edde36b2b1ab800847a06cddd5205317dbcd351ae3b0eb730bc2"}, "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": true}, "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','postgres') 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": 1722277884.164581, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"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": "postgres", "schema": "ad_reporting_docs", "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": true}, "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','postgres') else false }}"}, "created_at": 1722277884.165935, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"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": "postgres", "schema": "ad_reporting_docs", "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": true}, "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','postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "campaign_budget_amount": "float", "click_through_rate": "float"}}, "created_at": 1722277884.167219, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"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": "postgres", "schema": "ad_reporting_docs", "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": true}, "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','postgres') else false }}", "column_types": {"page_link": "{{ 'string' if target.name in ['bigquery','spark', 'databricks'] else 'varchar' }}", "template_page_link": "{{ 'string' if target.name in ['bigquery','spark', 'databricks'] else 'varchar' }}", "id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "account_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}"}}, "created_at": 1722277884.168563, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"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": "postgres", "schema": "ad_reporting_docs", "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": "8be9d24fc395101fc03be9b0e38f0e87baf450c262ce29af544fd1fae72c203a"}, "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": true}, "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','postgres') else false }}"}, "created_at": 1722277884.1698391, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"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": "postgres", "schema": "ad_reporting_docs", "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": true}, "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','postgres') else false }}", "column_types": {"tweet_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1722277884.171167, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"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.amazon_ads_search_term_ad_keyword_report_data": {"database": "postgres", "schema": "ad_reporting_docs", "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": true}, "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','postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "campaign_budget_amount": "float", "keyword_bid": "float"}}, "created_at": 1722277884.172493, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"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": "postgres", "schema": "ad_reporting_docs", "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": true}, "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','postgres') else false }}"}, "created_at": 1722277884.173769, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"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": "postgres", "schema": "ad_reporting_docs", "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": true}, "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','postgres') else false }}"}, "created_at": 1722277884.175012, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"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": "postgres", "schema": "ad_reporting_docs", "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": true}, "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','postgres') else false }}"}, "created_at": 1722277884.1762419, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"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": "postgres", "schema": "ad_reporting_docs", "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": true}, "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','postgres') else false }}"}, "created_at": 1722277884.177515, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"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": "postgres", "schema": "ad_reporting_docs", "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": true}, "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','postgres') 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": 1722277884.178841, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"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": "postgres", "schema": "ad_reporting_docs", "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": "7aa7a5c05d68344ef454636b9f70e4e69869c5d78f677b20df600e5ac2ddcb25"}, "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": true}, "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','postgres') 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": 1722277884.180243, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"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": "postgres", "schema": "ad_reporting_docs", "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": true}, "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','postgres') else false }}"}, "created_at": 1722277884.18154, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"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": "postgres", "schema": "ad_reporting_docs", "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": true}, "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','postgres') else false }}"}, "created_at": 1722277884.182822, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"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": "postgres", "schema": "ad_reporting_docs", "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": true}, "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','postgres') else false }}"}, "created_at": 1722277884.184066, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"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": "postgres", "schema": "ad_reporting_docs", "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": true}, "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','postgres') else false }}", "column_types": {"id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "account_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1722277884.185355, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"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": "postgres", "schema": "ad_reporting_docs", "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": "40dc5b48841d732d7707801558e939abdbf2c0c333a2a4b6f76cd40d68f90f78"}, "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": true}, "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','postgres') 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": 1722277884.186723, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"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": "postgres", "schema": "ad_reporting_docs", "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": true}, "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','postgres') 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": 1722277884.188125, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"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": "postgres", "schema": "ad_reporting_docs", "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": true}, "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','postgres') else false }}", "column_types": {"tweet_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1722277884.189499, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"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": "postgres", "schema": "ad_reporting_docs", "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": true}, "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','postgres') else false }}", "column_types": {"modification_time": "timestamp"}}, "created_at": 1722277884.190811, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"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": "postgres", "schema": "ad_reporting_docs", "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": true}, "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','postgres') 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": 1722277884.192142, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"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": "postgres", "schema": "ad_reporting_docs", "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": "e70579f043f414f66202fc59604c4f9290377c8536d0e9ee937455fdc5881ccd"}, "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": true}, "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','postgres') 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": 1722277884.193504, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"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": "postgres", "schema": "ad_reporting_docs", "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": "6142bee4a77ce262922cdb7a68ce46f080a2df2bb66a804eecaaf62aa590e0d2"}, "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": true}, "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','postgres') 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": 1722277884.1949382, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"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": "postgres", "schema": "ad_reporting_docs", "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": "d511070057e0350bd6feeff317d9adf1fbe30690b615211738b3f2efc6e29133"}, "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": true}, "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','postgres') 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": 1722277884.19633, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"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": "postgres", "schema": "ad_reporting_docs", "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": true}, "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','postgres') 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": 1722277884.197729, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"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": "postgres", "schema": "ad_reporting_docs", "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": "9f74b7c0073147c015bcb8d7b69011f641f4276f4f22aa61c3b7dc3f39837527"}, "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": true}, "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','postgres') else false }}", "column_types": {"day": "timestamp", "external_website_conversions": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1722277884.199081, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"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": "postgres", "schema": "ad_reporting_docs", "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": true}, "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','postgres') else false }}"}, "created_at": 1722277884.200348, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"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": "postgres", "schema": "ad_reporting_docs", "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": true}, "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','postgres') else false }}", "column_types": {"id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "name": "{{ 'string' if target.name in ['bigquery','spark', 'databricks'] else 'varchar' }}"}}, "created_at": 1722277884.201654, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"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": "postgres", "schema": "ad_reporting_docs", "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": true}, "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','postgres') else false }}"}, "created_at": 1722277884.2029362, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"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": "postgres", "schema": "ad_reporting_docs", "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": true}, "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','postgres') 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": 1722277884.2042701, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"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": "postgres", "schema": "ad_reporting_docs", "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": "94d05fc7771cd0965df9d5983d4ff14704cf8d586b4b3db005852d2c120d5ffe"}, "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": true}, "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','postgres') 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": 1722277884.205655, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"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": "postgres", "schema": "ad_reporting_docs", "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": true}, "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','postgres') else false }}"}, "created_at": 1722277884.20699, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"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": "postgres", "schema": "ad_reporting_docs", "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": "589c187cfa8845b5851700d6e10128a158fe860a55a4f4de7f83b1e92226bc9e"}, "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": true}, "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','postgres') 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": 1722277884.2082958, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"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": "postgres", "schema": "ad_reporting_docs", "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": true}, "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','postgres') else false }}", "column_types": {"ad_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "account_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1722277884.209634, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"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": "postgres", "schema": "ad_reporting_docs", "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": "d69dcb9baa6015d02d6304146b4f3c6cab3fb75431c351636d9c9f65b5f7d911"}, "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": true}, "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','postgres') else false }}"}, "created_at": 1722277884.210903, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"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": "postgres", "schema": "ad_reporting_docs", "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": "384b5c5b4f318171a536391e3591a2d4833f4bafeef3ea7f20be82b1f04b1346"}, "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": true}, "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','postgres') 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": 1722277884.212223, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"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": "postgres", "schema": "ad_reporting_docs", "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": true}, "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','postgres') else false }}"}, "created_at": 1722277884.21356, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"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": "postgres", "schema": "ad_reporting_docs", "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": true}, "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','postgres') else false }}", "column_types": {"id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1722277884.214831, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"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": "postgres", "schema": "ad_reporting_docs", "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": "bfd35d6b8446668beead2ac4590a52d36815d55adf1dee4cde552a5538fc1725"}, "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": true}, "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','postgres') else false }}"}, "created_at": 1722277884.216094, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"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": "postgres", "schema": "ad_reporting_docs", "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": true}, "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','postgres') 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": 1722277884.217356, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"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": "postgres", "schema": "ad_reporting_docs", "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": true}, "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','postgres') else false }}", "column_types": {"created_time": "timestamp", "last_modified_time": "timestamp"}}, "created_at": 1722277884.2187572, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"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": "postgres", "schema": "ad_reporting_docs", "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": true}, "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','postgres') else false }}", "column_types": {"name": "{{ 'string' if target.name in ['bigquery','spark', 'databricks'] else 'varchar' }}"}}, "created_at": 1722277884.2200608, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"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": "postgres", "schema": "ad_reporting_docs", "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": true}, "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','postgres') else false }}"}, "created_at": 1722277884.221316, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"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": "postgres", "schema": "ad_reporting_docs", "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": true}, "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','postgres') else false }}", "column_types": {"day": "timestamp", "external_website_conversions": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1722277884.2225852, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"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": "postgres", "schema": "ad_reporting_docs", "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": true}, "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','postgres') 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": 1722277884.223948, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"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": "postgres", "schema": "ad_reporting_docs", "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": true}, "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','postgres') 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": 1722277884.2253382, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"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": "postgres", "schema": "ad_reporting_docs", "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": true}, "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','postgres') else false }}"}, "created_at": 1722277884.2266061, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"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": "postgres", "schema": "ad_reporting_docs", "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": "1f2f808727dc7d9d45ba0ac10bba717da6454110d8fb242ee54986b8b60d7f9d"}, "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": true}, "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','postgres') else false }}", "column_types": {"date": "timestamp"}}, "created_at": 1722277884.227865, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"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": "postgres", "schema": "ad_reporting_docs", "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": true}, "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','postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "campaign_budget_amount": "float", "click_through_rate": "float", "keyword_bid": "float"}}, "created_at": 1722277884.229174, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"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": "postgres", "schema": "ad_reporting_docs", "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": "026f9dd8b52f39f82551e9b632dc4ee00ef44df83c0227d076ecb260025a451a"}, "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": true}, "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','postgres') 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": 1722277884.2305431, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"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": "postgres", "schema": "ad_reporting_docs", "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": true}, "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','postgres') else false }}"}, "created_at": 1722277884.2318132, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"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": "postgres", "schema": "ad_reporting_docs", "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": "30cfac35c4fb0c216f8992ee23e13c2ed9322373ef62316ca9b5876952444295"}, "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": true}, "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','postgres') else false }}"}, "created_at": 1722277884.2330308, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"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": "postgres", "schema": "ad_reporting_docs", "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": true}, "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','postgres') 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": 1722277884.234356, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"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.twitter_line_item_keywords_report_data": {"database": "postgres", "schema": "ad_reporting_docs", "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": true}, "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','postgres') else false }}"}, "created_at": 1722277884.23565, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"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": "postgres", "schema": "ad_reporting_docs", "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": true}, "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','postgres') else false }}"}, "created_at": 1722277884.236907, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"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": "postgres", "schema": "ad_reporting_docs", "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": "2defb0e38c65b2bf62ce5cb269c2f539437885533b53d7a3174d1cc04e2c7efe"}, "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": true}, "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','postgres') 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": 1722277884.23823, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"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": "postgres", "schema": "ad_reporting_docs", "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": true}, "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','postgres') 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": 1722277884.239649, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"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": "postgres", "schema": "ad_reporting_docs", "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": true}, "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','postgres') else false }}"}, "created_at": 1722277884.240963, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"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": "postgres", "schema": "ad_reporting_docs", "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": true}, "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','postgres') else false }}"}, "created_at": 1722277884.242233, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"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": "postgres", "schema": "ad_reporting_docs", "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": true}, "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','postgres') else false }}"}, "created_at": 1722277884.243459, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"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": "postgres", "schema": "ad_reporting_docs", "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": true}, "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','postgres') else false }}", "column_types": {"account_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1722277884.244724, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"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": "postgres", "schema": "ad_reporting_docs", "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": true}, "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','postgres') else false }}"}, "created_at": 1722277884.2460082, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"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": "postgres", "schema": "ad_reporting_docs", "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": "d7b9b56c1e3e73463bafe6d686bad8fb08107f33e3dbc22c5032c0f355a60b6c"}, "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": true}, "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','postgres') 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": 1722277884.2473118, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"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": "postgres", "schema": "ad_reporting_docs", "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": true}, "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','postgres') else false }}"}, "created_at": 1722277884.248631, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"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": "postgres", "schema": "ad_reporting_docs", "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": "e142bf0e3037365792c797d4dcbc3c3ec4621f1802fae83b3ef5a4f05630f162"}, "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": true}, "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','postgres') else false }}"}, "created_at": 1722277884.249855, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"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": "postgres", "schema": "ad_reporting_docs", "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": true}, "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','postgres') else false }}"}, "created_at": 1722277884.251082, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"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": "postgres", "schema": "ad_reporting_docs", "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": true}, "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','postgres') else false }}", "column_types": {"ad_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "account_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1722277884.252367, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"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": "postgres", "schema": "ad_reporting_docs", "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": "adef7939173c1809f516a7cf739b697eb875210228e21a1cbb52bbdee7dc4ce4"}, "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": true}, "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','postgres') 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": 1722277884.253749, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"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.apple_search_ad_group_report_data": {"database": "postgres", "schema": "ad_reporting_docs", "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": true}, "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','postgres') else false }}"}, "created_at": 1722277884.255038, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"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": "postgres", "schema": "ad_reporting_docs", "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": true}, "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','postgres') else false }}", "column_types": {"id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1722277884.2563121, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"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": "postgres", "schema": "ad_reporting_docs", "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": true}, "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','postgres') else false }}", "column_types": {"creation_time": "timestamp", "modification_time": "timestamp"}}, "created_at": 1722277884.257617, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"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": "postgres", "schema": "ad_reporting_docs", "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": true}, "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','postgres') else false }}"}, "created_at": 1722277884.2588701, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"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": "postgres", "schema": "ad_reporting_docs_microsoft_ads_source", "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": "23c7e5e4ec6c08d32e0f8509f27d9850381ed63a01ffe7871a41a883b7a8c0d2"}, "config": {"enabled": true, "alias": null, "schema": "microsoft_ads_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "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": "microsoft_ads_source", "materialized": "table", "enabled": true}, "created_at": 1722277887.1001751, "relation_name": "\"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"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 clicks, \n impressions,\n spend\n \n {{ fivetran_utils.fill_pass_through_columns('microsoft_ads__account_passthrough_metrics') }}\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.fivetran_utils.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\".\"ad_reporting_docs_microsoft_ads_source\".\"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\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 clicks, \n impressions,\n 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.microsoft_ads_source.stg_microsoft_ads__search_daily_report": {"database": "postgres", "schema": "ad_reporting_docs_microsoft_ads_source", "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": "3a16ffdf879d27e954ff4e0e50c90b36fa01b537a591f58b0b0db1fa036df2a6"}, "config": {"enabled": true, "alias": null, "schema": "microsoft_ads_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "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": "microsoft_ads_source", "materialized": "table", "enabled": true}, "created_at": 1722277887.108883, "relation_name": "\"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"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 clicks,\n impressions,\n spend\n\n {{ fivetran_utils.fill_pass_through_columns('microsoft_ads__search_passthrough_metrics') }}\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.fivetran_utils.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\".\"ad_reporting_docs_microsoft_ads_source\".\"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\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 clicks,\n impressions,\n 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.microsoft_ads_source.stg_microsoft_ads__keyword_daily_report": {"database": "postgres", "schema": "ad_reporting_docs_microsoft_ads_source", "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": "77c0d9fb82c221f5b260517069f4b815931889faff869ce24047d3498f87c3d5"}, "config": {"enabled": true, "alias": null, "schema": "microsoft_ads_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "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": "microsoft_ads_source", "materialized": "table", "enabled": true}, "created_at": 1722277887.1078532, "relation_name": "\"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"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 clicks,\n impressions,\n spend\n\n {{ fivetran_utils.fill_pass_through_columns('microsoft_ads__keyword_passthrough_metrics') }}\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.fivetran_utils.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\".\"ad_reporting_docs_microsoft_ads_source\".\"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 \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 clicks,\n impressions,\n 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.microsoft_ads_source.stg_microsoft_ads__campaign_daily_report": {"database": "postgres", "schema": "ad_reporting_docs_microsoft_ads_source", "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": "0ac2c41b7c509fd4752e982ce9da07312cf5e4bc8dd6e1157413d23a3b8e7d71"}, "config": {"enabled": true, "alias": null, "schema": "microsoft_ads_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "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": "microsoft_ads_source", "materialized": "table", "enabled": true}, "created_at": 1722277887.1059809, "relation_name": "\"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"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 clicks,\n impressions,\n spend\n\n {{ fivetran_utils.fill_pass_through_columns('microsoft_ads__campaign_passthrough_metrics') }}\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.fivetran_utils.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\".\"ad_reporting_docs_microsoft_ads_source\".\"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 cast(null as TEXT) as \n \n budget_name\n \n , \n cast(null as TEXT) as \n \n budget_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 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 clicks,\n impressions,\n 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.microsoft_ads_source.stg_microsoft_ads__keyword_history": {"database": "postgres", "schema": "ad_reporting_docs_microsoft_ads_source", "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": "microsoft_ads_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": "microsoft_ads_source", "materialized": "table", "enabled": true}, "created_at": 1722277887.106863, "relation_name": "\"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"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\".\"ad_reporting_docs_microsoft_ads_source\".\"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": "ad_reporting_docs_microsoft_ads_source", "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": "a6b93da9b49e9a795ec8811a534dbf851450826140531c7eee7ce9df8575f818"}, "config": {"enabled": true, "alias": null, "schema": "microsoft_ads_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "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": "microsoft_ads_source", "materialized": "table", "enabled": true}, "created_at": 1722277887.102116, "relation_name": "\"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"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 clicks,\n impressions,\n spend\n\n {{ fivetran_utils.fill_pass_through_columns('microsoft_ads__ad_group_passthrough_metrics') }}\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.fivetran_utils.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\".\"ad_reporting_docs_microsoft_ads_source\".\"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\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 clicks,\n impressions,\n 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.microsoft_ads_source.stg_microsoft_ads__ad_group_history": {"database": "postgres", "schema": "ad_reporting_docs_microsoft_ads_source", "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": "microsoft_ads_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": "microsoft_ads_source", "materialized": "table", "enabled": true}, "created_at": 1722277887.1011672, "relation_name": "\"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"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\".\"ad_reporting_docs_microsoft_ads_source\".\"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": "ad_reporting_docs_microsoft_ads_source", "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": "microsoft_ads_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": "microsoft_ads_source", "materialized": "table", "enabled": true}, "created_at": 1722277887.103041, "relation_name": "\"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"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\".\"ad_reporting_docs_microsoft_ads_source\".\"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": "ad_reporting_docs_microsoft_ads_source", "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": "9c9a1867561d16a4fedc0b693a2be1192d1d348a4954d449c852e5f4c5a059c9"}, "config": {"enabled": true, "alias": null, "schema": "microsoft_ads_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "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": "microsoft_ads_source", "materialized": "table", "enabled": true}, "created_at": 1722277887.104068, "relation_name": "\"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"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 clicks,\n impressions,\n spend\n\n {{ fivetran_utils.fill_pass_through_columns('microsoft_ads__ad_passthrough_metrics') }}\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.fivetran_utils.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\".\"ad_reporting_docs_microsoft_ads_source\".\"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\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 clicks,\n impressions,\n 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.microsoft_ads_source.stg_microsoft_ads__account_history": {"database": "postgres", "schema": "ad_reporting_docs_microsoft_ads_source", "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": "microsoft_ads_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": "microsoft_ads_source", "materialized": "table", "enabled": true}, "created_at": 1722277887.099025, "relation_name": "\"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"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\".\"ad_reporting_docs_microsoft_ads_source\".\"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": "ad_reporting_docs_microsoft_ads_source", "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": "microsoft_ads_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": "microsoft_ads_source", "materialized": "table", "enabled": true}, "created_at": 1722277887.104979, "relation_name": "\"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"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\".\"ad_reporting_docs_microsoft_ads_source\".\"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": "ad_reporting_docs_microsoft_ads_source", "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": "microsoft_ads_source", "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": "microsoft_ads_source", "materialized": "view", "enabled": true}, "created_at": 1722277884.49068, "relation_name": "\"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"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\".\"ad_reporting_docs\".\"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": "ad_reporting_docs_microsoft_ads_source", "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": "microsoft_ads_source", "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": "microsoft_ads_source", "materialized": "view", "enabled": true}, "created_at": 1722277884.5096571, "relation_name": "\"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"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\".\"ad_reporting_docs\".\"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": "ad_reporting_docs_microsoft_ads_source", "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": "microsoft_ads_source", "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": "microsoft_ads_source", "materialized": "view", "enabled": true}, "created_at": 1722277884.514596, "relation_name": "\"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"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\".\"ad_reporting_docs\".\"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": "ad_reporting_docs_microsoft_ads_source", "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": "microsoft_ads_source", "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": "microsoft_ads_source", "materialized": "view", "enabled": true}, "created_at": 1722277884.518671, "relation_name": "\"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"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\".\"ad_reporting_docs\".\"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": "ad_reporting_docs_microsoft_ads_source", "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": "microsoft_ads_source", "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": "microsoft_ads_source", "materialized": "view", "enabled": true}, "created_at": 1722277884.522793, "relation_name": "\"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"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\".\"ad_reporting_docs\".\"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": "ad_reporting_docs_microsoft_ads_source", "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": "microsoft_ads_source", "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": "microsoft_ads_source", "materialized": "view", "enabled": true}, "created_at": 1722277884.527364, "relation_name": "\"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"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\".\"ad_reporting_docs\".\"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": "ad_reporting_docs_microsoft_ads_source", "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": "microsoft_ads_source", "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": "microsoft_ads_source", "materialized": "view", "enabled": true}, "created_at": 1722277884.531424, "relation_name": "\"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"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\".\"ad_reporting_docs\".\"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": "ad_reporting_docs_microsoft_ads_source", "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": "microsoft_ads_source", "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": "microsoft_ads_source", "materialized": "view", "enabled": true}, "created_at": 1722277884.5354838, "relation_name": "\"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"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\".\"ad_reporting_docs\".\"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": "ad_reporting_docs_microsoft_ads_source", "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": "microsoft_ads_source", "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": "microsoft_ads_source", "materialized": "view", "enabled": true}, "created_at": 1722277884.539621, "relation_name": "\"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"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\".\"ad_reporting_docs\".\"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": "ad_reporting_docs_microsoft_ads_source", "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": "microsoft_ads_source", "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": "microsoft_ads_source", "materialized": "view", "enabled": true}, "created_at": 1722277884.5442822, "relation_name": "\"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"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\".\"ad_reporting_docs\".\"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": "ad_reporting_docs_microsoft_ads_source", "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": "microsoft_ads_source", "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": "microsoft_ads_source", "materialized": "view", "enabled": true}, "created_at": 1722277884.54832, "relation_name": "\"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"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\".\"ad_reporting_docs\".\"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": "ad_reporting_docs_tiktok_ads", "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": "632cca1bf09a444564b0191f47cbf9b915abc122a33771101bf532022445adba"}, "config": {"enabled": true, "alias": null, "schema": "tiktok_ads", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}, "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": "tiktok_ads", "materialized": "table", "enabled": true}, "created_at": 1722277887.212755, "relation_name": "\"postgres\".\"ad_reporting_docs_tiktok_ads\".\"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.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 {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='tiktok_ads__ad_group_hourly_passthrough_metrics', transform = 'sum') }}\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.fivetran_utils.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\".\"ad_reporting_docs_stg_tiktok_ads\".\"stg_tiktok_ads__ad_group_report_hourly\"\n), \n\nad_groups as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_stg_tiktok_ads\".\"stg_tiktok_ads__ad_group_history\"\n where is_most_recent_record\n), \n\nadvertiser as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_stg_tiktok_ads\".\"stg_tiktok_ads__advertiser\"\n), \n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_stg_tiktok_ads\".\"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.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": "ad_reporting_docs_tiktok_ads", "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": "f13afd947f065144756d205dbca162f146a9d03da149c33cca61c5037229390a"}, "config": {"enabled": true, "alias": null, "schema": "tiktok_ads", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}, "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": "tiktok_ads", "materialized": "table", "enabled": true}, "created_at": 1722277887.216363, "relation_name": "\"postgres\".\"ad_reporting_docs_tiktok_ads\".\"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.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 {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='tiktok_ads__ad_hourly_passthrough_metrics', transform = 'sum') }}\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.fivetran_utils.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\".\"ad_reporting_docs_stg_tiktok_ads\".\"stg_tiktok_ads__ad_report_hourly\"\n), \n\nads as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_stg_tiktok_ads\".\"stg_tiktok_ads__ad_history\"\n where is_most_recent_record\n), \n\nad_groups as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_stg_tiktok_ads\".\"stg_tiktok_ads__ad_group_history\"\n where is_most_recent_record\n), \n\nadvertiser as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_stg_tiktok_ads\".\"stg_tiktok_ads__advertiser\"\n), \n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_stg_tiktok_ads\".\"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.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": "ad_reporting_docs_tiktok_ads", "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": "65428adb314b3bb0f77e9f3df4705c1b0de4732b0894578c6936bdecfc8e541d"}, "config": {"enabled": true, "alias": null, "schema": "tiktok_ads", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}, "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": "tiktok_ads", "materialized": "table", "enabled": true}, "created_at": 1722277887.21365, "relation_name": "\"postgres\".\"ad_reporting_docs_tiktok_ads\".\"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.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 {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='tiktok_ads__campaign_hourly_passthrough_metrics', transform = 'sum') }}\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.fivetran_utils.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\".\"ad_reporting_docs_stg_tiktok_ads\".\"stg_tiktok_ads__campaign_report_hourly\"\n), \n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_stg_tiktok_ads\".\"stg_tiktok_ads__campaign_history\"\n where is_most_recent_record\n), \n\nadvertiser as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_stg_tiktok_ads\".\"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.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": "ad_reporting_docs_tiktok_ads", "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": "b6e44bf0fd46cf38a97e77939018234574ce2ac79aaf04be49d1c84ccab8e844"}, "config": {"enabled": true, "alias": null, "schema": "tiktok_ads", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}, "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": "tiktok_ads", "materialized": "table", "enabled": true}, "created_at": 1722277887.211787, "relation_name": "\"postgres\".\"ad_reporting_docs_tiktok_ads\".\"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.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 {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='tiktok_ads__ad_hourly_passthrough_metrics', transform = 'sum') }}\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.fivetran_utils.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\".\"ad_reporting_docs_stg_tiktok_ads\".\"stg_tiktok_ads__ad_report_hourly\"\n), \n\nads as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_stg_tiktok_ads\".\"stg_tiktok_ads__ad_history\"\n where is_most_recent_record\n), \n\nad_groups as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_stg_tiktok_ads\".\"stg_tiktok_ads__ad_group_history\"\n where is_most_recent_record\n), \n\nadvertiser as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_stg_tiktok_ads\".\"stg_tiktok_ads__advertiser\"\n), \n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_stg_tiktok_ads\".\"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.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": "ad_reporting_docs_tiktok_ads", "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": "1a10a6276a75789dee9b7a93d0f28dead678944e65d4a2414155cdc32761ad80"}, "config": {"enabled": true, "alias": null, "schema": "tiktok_ads", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}, "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": "tiktok_ads", "materialized": "table", "enabled": true}, "created_at": 1722277887.210158, "relation_name": "\"postgres\".\"ad_reporting_docs_tiktok_ads\".\"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.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 {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='tiktok_ads__ad_hourly_passthrough_metrics', transform = 'sum') }}\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.fivetran_utils.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\".\"ad_reporting_docs_stg_tiktok_ads\".\"stg_tiktok_ads__ad_report_hourly\"\n),\n\nadvertiser as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_stg_tiktok_ads\".\"stg_tiktok_ads__advertiser\"\n), \n\nads as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_stg_tiktok_ads\".\"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.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": "ad_reporting_docs_twitter_ads", "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": "31e158cb6df27218d4cf8dcd2ce39f42afb536cd3c92ee8cfcdb435ec7554d2b"}, "config": {"enabled": true, "alias": null, "schema": "twitter_ads", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "twitter_ads://models/twitter.yml", "build_path": null, "unrendered_config": {"schema": "twitter_ads", "materialized": "table", "enabled": true}, "created_at": 1722277887.257068, "relation_name": "\"postgres\".\"ad_reporting_docs_twitter_ads\".\"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 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\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\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.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\".\"ad_reporting_docs_twitter_ads_source\".\"stg_twitter_ads__account_history\"\n where is_latest_version\n),\n\npromoted_tweet_report as (\n \n select *\n from \"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"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\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\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": "ad_reporting_docs_twitter_ads", "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": "6107d172aa2347eb7d09ce1ce4dd508a5b9f6135cd13734a305662f2ea90ac15"}, "config": {"enabled": true, "alias": null, "schema": "twitter_ads", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "twitter_ads://models/twitter.yml", "build_path": null, "unrendered_config": {"schema": "twitter_ads", "materialized": "table", "enabled": true}, "created_at": 1722277887.252346, "relation_name": "\"postgres\".\"ad_reporting_docs_twitter_ads\".\"twitter_ads__campaign_report\"", "raw_code": "{{ config(enabled=var('ad_reporting__twitter_ads_enabled', True)) }}\n\nwith report as (\n\n select *\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\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.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 from \"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"stg_twitter_ads__campaign_report\"\n),\n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"stg_twitter_ads__campaign_history\"\n where is_latest_version\n),\n\naccounts as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"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\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": "ad_reporting_docs_twitter_ads", "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": "d18a996153670ae8f8095990516580e1ccb02fd4785124716936b58fd5e25df8"}, "config": {"enabled": true, "alias": null, "schema": "twitter_ads", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "twitter_ads://models/twitter.yml", "build_path": null, "unrendered_config": {"schema": "twitter_ads", "materialized": "table", "enabled": true}, "created_at": 1722277887.260915, "relation_name": "\"postgres\".\"ad_reporting_docs_twitter_ads\".\"twitter_ads__url_report\"", "raw_code": "{{ config(enabled=var('ad_reporting__twitter_ads_enabled', True)) }}\n\nwith report as (\n\n select *\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\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.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 from \"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"stg_twitter_ads__promoted_tweet_report\"\n),\n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"stg_twitter_ads__campaign_history\"\n where is_latest_version\n),\n\naccounts as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"stg_twitter_ads__account_history\"\n where is_latest_version\n),\n\nline_items as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"stg_twitter_ads__line_item_history\"\n where is_latest_version\n),\n\npromoted_tweets as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"stg_twitter_ads__promoted_tweet_history\"\n where is_latest_version\n),\n\ntweets as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"stg_twitter_ads__tweet\"\n),\n\ntweet_url as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"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\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": "ad_reporting_docs_twitter_ads", "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": "3d7fceb841d5592996ef8f44bf674838b00a29a20c516d6b073e1b844c06c583"}, "config": {"enabled": true, "alias": null, "schema": "twitter_ads", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "twitter_ads://models/twitter.yml", "build_path": null, "unrendered_config": {"schema": "twitter_ads", "materialized": "table", "enabled": true}, "created_at": 1722277887.2594922, "relation_name": "\"postgres\".\"ad_reporting_docs_twitter_ads\".\"twitter_ads__promoted_tweet_report\"", "raw_code": "{{ config(enabled=var('ad_reporting__twitter_ads_enabled', True)) }}\n\nwith report as (\n\n select *\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\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.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 from \"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"stg_twitter_ads__promoted_tweet_report\"\n),\n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"stg_twitter_ads__campaign_history\"\n where is_latest_version\n),\n\naccounts as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"stg_twitter_ads__account_history\"\n where is_latest_version\n),\n\nline_items as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"stg_twitter_ads__line_item_history\"\n where is_latest_version\n),\n\npromoted_tweets as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"stg_twitter_ads__promoted_tweet_history\"\n where is_latest_version\n),\n\ntweets as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"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\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": "ad_reporting_docs_twitter_ads", "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": "ef272838c187155e1eb3b89540cc718d465f88d794c85eb228b643a24c79effe"}, "config": {"enabled": true, "alias": null, "schema": "twitter_ads", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "twitter_ads://models/twitter.yml", "build_path": null, "unrendered_config": {"schema": "twitter_ads", "materialized": "table", "enabled": true}, "created_at": 1722277887.255477, "relation_name": "\"postgres\".\"ad_reporting_docs_twitter_ads\".\"twitter_ads__line_item_report\"", "raw_code": "{{ config(enabled=var('ad_reporting__twitter_ads_enabled', True)) }}\n\nwith report as (\n\n select *\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\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.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 from \"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"stg_twitter_ads__line_item_report\"\n),\n\nline_items as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"stg_twitter_ads__line_item_history\"\n where is_latest_version\n),\n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"stg_twitter_ads__campaign_history\"\n where is_latest_version\n),\n\naccounts as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"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\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.reddit_ads.reddit_ads__campaign_report": {"database": "postgres", "schema": "ad_reporting_docs_reddit_ads", "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": "b409d2ced6512b40ac03912c9495ec1a351215a7fd0e3e76da3fe646f7942d04"}, "config": {"enabled": true, "alias": null, "schema": "reddit_ads", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "reddit_ads://models/reddit_ads.yml", "build_path": null, "unrendered_config": {"schema": "reddit_ads", "materialized": "table", "enabled": true}, "created_at": 1722277887.304436, "relation_name": "\"postgres\".\"ad_reporting_docs_reddit_ads\".\"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\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\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='reddit_ads__campaign_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 {{ 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}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.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"]}, "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\".\"ad_reporting_docs_reddit_ads_source\".\"stg_reddit_ads__campaign_report\"\n),\n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_reddit_ads_source\".\"stg_reddit_ads__campaign\"\n),\n\naccounts as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_reddit_ads_source\".\"stg_reddit_ads__account\"\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\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\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": "ad_reporting_docs_reddit_ads", "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": "d5d41313a0c6dcd6eae19be5ad3146684adaf5432ae66fb925367f0838dbfeb6"}, "config": {"enabled": true, "alias": null, "schema": "reddit_ads", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "reddit_ads://models/reddit_ads.yml", "build_path": null, "unrendered_config": {"schema": "reddit_ads", "materialized": "table", "enabled": true}, "created_at": 1722277887.3055491, "relation_name": "\"postgres\".\"ad_reporting_docs_reddit_ads\".\"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\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\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='reddit_ads__ad_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 {{ 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}], "sources": [], "metrics": [], "depends_on": {"macros": ["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.fivetran_utils.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"]}, "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\".\"ad_reporting_docs_reddit_ads_source\".\"stg_reddit_ads__ad_report\"\n),\n\nads as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_reddit_ads_source\".\"stg_reddit_ads__ad\"\n),\n\nad_groups as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_reddit_ads_source\".\"stg_reddit_ads__ad_group\"\n), \n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_reddit_ads_source\".\"stg_reddit_ads__campaign\"\n), \n\naccounts as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_reddit_ads_source\".\"stg_reddit_ads__account\"\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\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 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": "ad_reporting_docs_reddit_ads", "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": "9da24c8de6a38f6faa808f7791f9c322445cf96156fe8e602b311838b317b448"}, "config": {"enabled": true, "alias": null, "schema": "reddit_ads", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "reddit_ads://models/reddit_ads.yml", "build_path": null, "unrendered_config": {"schema": "reddit_ads", "materialized": "table", "enabled": true}, "created_at": 1722277887.302576, "relation_name": "\"postgres\".\"ad_reporting_docs_reddit_ads\".\"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, joined 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\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='reddit_ads__account_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 {{ 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}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.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"]}, "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\".\"ad_reporting_docs_reddit_ads_source\".\"stg_reddit_ads__account_report\"\n), \n\naccounts as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_reddit_ads_source\".\"stg_reddit_ads__account\"\n)\n\n, joined 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\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\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": "ad_reporting_docs_reddit_ads", "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": "3829b527e97fcb46e19d9e92d2c81300fa0d45a98c0c145a67976789249dfb90"}, "config": {"enabled": true, "alias": null, "schema": "reddit_ads", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "reddit_ads://models/reddit_ads.yml", "build_path": null, "unrendered_config": {"schema": "reddit_ads", "materialized": "table", "enabled": true}, "created_at": 1722277887.303942, "relation_name": "\"postgres\".\"ad_reporting_docs_reddit_ads\".\"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\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\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='reddit_ads__ad_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 {{ 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}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.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"]}, "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\".\"ad_reporting_docs_reddit_ads_source\".\"stg_reddit_ads__ad_report\"\n),\n\nads as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_reddit_ads_source\".\"stg_reddit_ads__ad\"\n), \n\nad_groups as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_reddit_ads_source\".\"stg_reddit_ads__ad_group\"\n),\n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_reddit_ads_source\".\"stg_reddit_ads__campaign\"\n),\n\naccounts as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_reddit_ads_source\".\"stg_reddit_ads__account\"\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\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 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": "ad_reporting_docs_reddit_ads", "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": "fd5da3740da980d6900a4db95f834a5fcdcf76c0de5284dedb9e4b256e3c86d8"}, "config": {"enabled": true, "alias": null, "schema": "reddit_ads", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "reddit_ads://models/reddit_ads.yml", "build_path": null, "unrendered_config": {"schema": "reddit_ads", "materialized": "table", "enabled": true}, "created_at": 1722277887.303134, "relation_name": "\"postgres\".\"ad_reporting_docs_reddit_ads\".\"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\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\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='reddit_ads__ad_group_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 {{ 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}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.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"]}, "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\".\"ad_reporting_docs_reddit_ads_source\".\"stg_reddit_ads__ad_group_report\"\n),\n\nad_groups as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_reddit_ads_source\".\"stg_reddit_ads__ad_group\"\n),\n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_reddit_ads_source\".\"stg_reddit_ads__campaign\"\n),\n\naccounts as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_reddit_ads_source\".\"stg_reddit_ads__account\"\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\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 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": "ad_reporting_docs_pinterest", "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": "1683c7b0877b314e13405ad070226e79790cf56baa9b4d9c74b39a8f35dedc31"}, "config": {"enabled": true, "alias": null, "schema": "pinterest", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "pinterest://models/pinterest.yml", "build_path": null, "unrendered_config": {"schema": "pinterest", "materialized": "table", "enabled": true}, "created_at": 1722277887.3774688, "relation_name": "\"postgres\".\"ad_reporting_docs_pinterest\".\"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.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend\n\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='pinterest__pin_promotion_report_passthrough_metrics', transform = 'sum') }}\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.fivetran_utils.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\".\"ad_reporting_docs_pinterest_source\".\"stg_pinterest_ads__pin_promotion_report\"\n), \n\npins as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_pinterest_source\".\"stg_pinterest_ads__pin_promotion_history\"\n where is_most_recent_record = True\n), \n\nad_groups as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_pinterest_source\".\"stg_pinterest_ads__ad_group_history\"\n where is_most_recent_record = True\n), \n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_pinterest_source\".\"stg_pinterest_ads__campaign_history\"\n where is_most_recent_record = True\n),\n\nadvertisers as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_pinterest_source\".\"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.clicks) as clicks,\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 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": "ad_reporting_docs_pinterest", "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": "874b8e610a79c14c8512547a79a2bee51d4e8a9f790219dcba7d96615b07f5ce"}, "config": {"enabled": true, "alias": null, "schema": "pinterest", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "pinterest://models/pinterest.yml", "build_path": null, "unrendered_config": {"schema": "pinterest", "materialized": "table", "enabled": true}, "created_at": 1722277887.379086, "relation_name": "\"postgres\".\"ad_reporting_docs_pinterest\".\"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\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='pinterest__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 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.fivetran_utils.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\".\"ad_reporting_docs_pinterest_source\".\"stg_pinterest_ads__campaign_report\"\n),\n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_pinterest_source\".\"stg_pinterest_ads__campaign_history\"\n where is_most_recent_record = True\n),\n\nadvertisers as (\n select *\n from \"postgres\".\"ad_reporting_docs_pinterest_source\".\"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\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": "ad_reporting_docs_pinterest", "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": "d8b3813bbeb46f957244332a7b9a22c9fbee6325cbc396db5317dbfb7811dcba"}, "config": {"enabled": true, "alias": null, "schema": "pinterest", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "pinterest://models/pinterest.yml", "build_path": null, "unrendered_config": {"schema": "pinterest", "materialized": "table", "enabled": true}, "created_at": 1722277887.38066, "relation_name": "\"postgres\".\"ad_reporting_docs_pinterest\".\"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\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='pinterest__keyword_report_passthrough_metrics', transform = 'sum') }}\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.fivetran_utils.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\".\"ad_reporting_docs_pinterest_source\".\"stg_pinterest_ads__keyword_report\"\n), \n\nadvertisers as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_pinterest_source\".\"stg_pinterest_ads__advertiser_history\"\n where is_most_recent_record = True\n),\n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_pinterest_source\".\"stg_pinterest_ads__campaign_history\"\n where is_most_recent_record = True\n), \n\nad_groups as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_pinterest_source\".\"stg_pinterest_ads__ad_group_history\"\n where is_most_recent_record = True\n), \n\nkeywords as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_pinterest_source\".\"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\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": "ad_reporting_docs_pinterest", "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": "f3223c1a41a69bceee12659ae60f919ff5a9af924f4fd9b273ff16e734a0c5ac"}, "config": {"enabled": true, "alias": null, "schema": "pinterest", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "pinterest://models/pinterest.yml", "build_path": null, "unrendered_config": {"schema": "pinterest", "materialized": "table", "enabled": true}, "created_at": 1722277887.379764, "relation_name": "\"postgres\".\"ad_reporting_docs_pinterest\".\"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\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='pinterest__advertiser_report_passthrough_metrics', transform = 'sum') }}\n\n from report\n left join advertisers\n on report.advertiser_id = advertisers.advertiser_id\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.fivetran_utils.persist_pass_through_columns", "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\".\"ad_reporting_docs_pinterest_source\".\"stg_pinterest_ads__advertiser_report\"\n), \n\nadvertisers as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_pinterest_source\".\"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\n \n\n\n\n\n\n from report\n left join advertisers\n on report.advertiser_id = advertisers.advertiser_id\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": "ad_reporting_docs_pinterest", "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": "27e64c6674a9d3d86bab43a406ba41c35e9a35275e64d8a7c5250fe80a47c99b"}, "config": {"enabled": true, "alias": null, "schema": "pinterest", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "pinterest://models/pinterest.yml", "build_path": null, "unrendered_config": {"schema": "pinterest", "materialized": "table", "enabled": true}, "created_at": 1722277887.381397, "relation_name": "\"postgres\".\"ad_reporting_docs_pinterest\".\"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.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend\n\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='pinterest__pin_promotion_report_passthrough_metrics', transform = 'sum') }}\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.fivetran_utils.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\".\"ad_reporting_docs_pinterest_source\".\"stg_pinterest_ads__pin_promotion_report\"\n), \n\npins as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_pinterest_source\".\"stg_pinterest_ads__pin_promotion_history\"\n where is_most_recent_record = True\n), \n\nad_groups as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_pinterest_source\".\"stg_pinterest_ads__ad_group_history\"\n where is_most_recent_record = True\n), \n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_pinterest_source\".\"stg_pinterest_ads__campaign_history\"\n where is_most_recent_record = True\n),\n\nadvertisers as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_pinterest_source\".\"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.clicks) as clicks,\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 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": "ad_reporting_docs_pinterest", "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": "e44502e705e8b1fff963954cbd11cad4a8ef7103e46929e982626b5eda683d67"}, "config": {"enabled": true, "alias": null, "schema": "pinterest", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "pinterest://models/pinterest.yml", "build_path": null, "unrendered_config": {"schema": "pinterest", "materialized": "table", "enabled": true}, "created_at": 1722277887.378567, "relation_name": "\"postgres\".\"ad_reporting_docs_pinterest\".\"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\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='pinterest__ad_group_report_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 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.fivetran_utils.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\".\"ad_reporting_docs_pinterest_source\".\"stg_pinterest_ads__ad_group_report\"\n), \n\nadvertisers as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_pinterest_source\".\"stg_pinterest_ads__advertiser_history\"\n where is_most_recent_record = True\n), \n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_pinterest_source\".\"stg_pinterest_ads__campaign_history\"\n where is_most_recent_record = True\n),\n\nad_groups as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_pinterest_source\".\"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\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_group": {"database": "postgres", "schema": "ad_reporting_docs_reddit_ads_source", "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": "reddit_ads_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": "reddit_ads_source", "materialized": "table", "enabled": true}, "created_at": 1722277887.433837, "relation_name": "\"postgres\".\"ad_reporting_docs_reddit_ads_source\".\"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\".\"ad_reporting_docs_reddit_ads_source\".\"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": "ad_reporting_docs_reddit_ads_source", "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": "reddit_ads_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": "reddit_ads_source", "materialized": "table", "enabled": true}, "created_at": 1722277887.4324841, "relation_name": "\"postgres\".\"ad_reporting_docs_reddit_ads_source\".\"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\".\"ad_reporting_docs_reddit_ads_source\".\"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": "ad_reporting_docs_reddit_ads_source", "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": "f0a5d95b9b23e62339a2a8bcd431a45c31da300f85ec868405b920a2d52e27a3"}, "config": {"enabled": true, "alias": null, "schema": "reddit_ads_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": "reddit_ads_source", "materialized": "table", "enabled": true}, "created_at": 1722277887.435231, "relation_name": "\"postgres\".\"ad_reporting_docs_reddit_ads_source\".\"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 clicks,\n date as date_day,\n impressions,\n region,\n (spend/1000000) 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\".\"ad_reporting_docs_reddit_ads_source\".\"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 clicks,\n date as date_day,\n impressions,\n region,\n (spend/1000000) 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": "ad_reporting_docs_reddit_ads_source", "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": "reddit_ads_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": "reddit_ads_source", "materialized": "table", "enabled": true}, "created_at": 1722277887.431436, "relation_name": "\"postgres\".\"ad_reporting_docs_reddit_ads_source\".\"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\".\"ad_reporting_docs_reddit_ads_source\".\"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__account_report": {"database": "postgres", "schema": "ad_reporting_docs_reddit_ads_source", "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": "1121cba352e60f250382394dc566782afacac193ececf17c5b8ad053f1cbcbf1"}, "config": {"enabled": true, "alias": null, "schema": "reddit_ads_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": "reddit_ads_source", "materialized": "table", "enabled": true}, "created_at": 1722277887.431883, "relation_name": "\"postgres\".\"ad_reporting_docs_reddit_ads_source\".\"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 clicks,\n date as date_day,\n impressions,\n region,\n (spend/1000000) 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\".\"ad_reporting_docs_reddit_ads_source\".\"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 clicks,\n date as date_day,\n impressions,\n region,\n (spend/1000000) 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": "ad_reporting_docs_reddit_ads_source", "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": "b68eb6446cc4e372d9bb10a40551a560b031b226ca41fa1639346167f99747d4"}, "config": {"enabled": true, "alias": null, "schema": "reddit_ads_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": "reddit_ads_source", "materialized": "table", "enabled": true}, "created_at": 1722277887.4329321, "relation_name": "\"postgres\".\"ad_reporting_docs_reddit_ads_source\".\"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 clicks,\n date as date_day,\n impressions,\n region,\n (spend/1000000) 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\".\"ad_reporting_docs_reddit_ads_source\".\"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 clicks,\n date as date_day,\n impressions,\n region,\n (spend/1000000) 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": "ad_reporting_docs_reddit_ads_source", "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": "reddit_ads_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": "reddit_ads_source", "materialized": "table", "enabled": true}, "created_at": 1722277887.4347892, "relation_name": "\"postgres\".\"ad_reporting_docs_reddit_ads_source\".\"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\".\"ad_reporting_docs_reddit_ads_source\".\"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": "ad_reporting_docs_reddit_ads_source", "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": "a799bc7229fe237b532c06c7d96b4e53b9bbc31951fe9241482d62d33c920592"}, "config": {"enabled": true, "alias": null, "schema": "reddit_ads_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": "reddit_ads_source", "materialized": "table", "enabled": true}, "created_at": 1722277887.434324, "relation_name": "\"postgres\".\"ad_reporting_docs_reddit_ads_source\".\"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 clicks,\n date as date_day,\n impressions,\n region,\n (spend/1000000) 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\".\"ad_reporting_docs_reddit_ads_source\".\"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 clicks,\n date as date_day,\n impressions,\n region,\n (spend/1000000) 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_tmp": {"database": "postgres", "schema": "ad_reporting_docs_reddit_ads_source", "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": "reddit_ads_source", "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": "reddit_ads_source", "materialized": "view", "enabled": true}, "created_at": 1722277884.9042199, "relation_name": "\"postgres\".\"ad_reporting_docs_reddit_ads_source\".\"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\".\"ad_reporting_docs\".\"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": "ad_reporting_docs_reddit_ads_source", "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": "reddit_ads_source", "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": "reddit_ads_source", "materialized": "view", "enabled": true}, "created_at": 1722277884.908309, "relation_name": "\"postgres\".\"ad_reporting_docs_reddit_ads_source\".\"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\".\"ad_reporting_docs\".\"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__campaign_report_tmp": {"database": "postgres", "schema": "ad_reporting_docs_reddit_ads_source", "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": "reddit_ads_source", "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": "reddit_ads_source", "materialized": "view", "enabled": true}, "created_at": 1722277884.9123998, "relation_name": "\"postgres\".\"ad_reporting_docs_reddit_ads_source\".\"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\".\"ad_reporting_docs\".\"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": "ad_reporting_docs_reddit_ads_source", "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": "reddit_ads_source", "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": "reddit_ads_source", "materialized": "view", "enabled": true}, "created_at": 1722277884.916557, "relation_name": "\"postgres\".\"ad_reporting_docs_reddit_ads_source\".\"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\".\"ad_reporting_docs\".\"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": "ad_reporting_docs_reddit_ads_source", "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": "reddit_ads_source", "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": "reddit_ads_source", "materialized": "view", "enabled": true}, "created_at": 1722277884.921303, "relation_name": "\"postgres\".\"ad_reporting_docs_reddit_ads_source\".\"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\".\"ad_reporting_docs\".\"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_group_tmp": {"database": "postgres", "schema": "ad_reporting_docs_reddit_ads_source", "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": "reddit_ads_source", "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": "reddit_ads_source", "materialized": "view", "enabled": true}, "created_at": 1722277884.925322, "relation_name": "\"postgres\".\"ad_reporting_docs_reddit_ads_source\".\"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\".\"ad_reporting_docs\".\"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": "ad_reporting_docs_reddit_ads_source", "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": "reddit_ads_source", "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": "reddit_ads_source", "materialized": "view", "enabled": true}, "created_at": 1722277884.9293382, "relation_name": "\"postgres\".\"ad_reporting_docs_reddit_ads_source\".\"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\".\"ad_reporting_docs\".\"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": "ad_reporting_docs_reddit_ads_source", "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": "reddit_ads_source", "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": "reddit_ads_source", "materialized": "view", "enabled": true}, "created_at": 1722277884.933456, "relation_name": "\"postgres\".\"ad_reporting_docs_reddit_ads_source\".\"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\".\"ad_reporting_docs\".\"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": "ad_reporting_docs_google_ads", "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": "google_ads", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": "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://models/google_ads.yml", "build_path": null, "unrendered_config": {"schema": "google_ads", "materialized": "table", "enabled": true}, "created_at": 1722277887.477508, "relation_name": "\"postgres\".\"ad_reporting_docs_google_ads\".\"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\".\"ad_reporting_docs_google_ads_source\".\"stg_google_ads__keyword_stats\"\n), \n\naccounts as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_google_ads_source\".\"stg_google_ads__account_history\"\n where is_most_recent_record = True\n),\n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_google_ads_source\".\"stg_google_ads__campaign_history\"\n where is_most_recent_record = True\n), \n\nad_groups as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_google_ads_source\".\"stg_google_ads__ad_group_history\"\n where is_most_recent_record = True\n), \n\ncriterions as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_google_ads_source\".\"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": "ad_reporting_docs_google_ads", "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": "google_ads", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": "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://models/google_ads.yml", "build_path": null, "unrendered_config": {"schema": "google_ads", "materialized": "table", "enabled": true}, "created_at": 1722277887.476348, "relation_name": "\"postgres\".\"ad_reporting_docs_google_ads\".\"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\".\"ad_reporting_docs_google_ads_source\".\"stg_google_ads__campaign_stats\"\n), \n\naccounts as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_google_ads_source\".\"stg_google_ads__account_history\"\n where is_most_recent_record = True\n), \n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_google_ads_source\".\"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": "ad_reporting_docs_google_ads", "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": "google_ads", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": "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://models/google_ads.yml", "build_path": null, "unrendered_config": {"schema": "google_ads", "materialized": "table", "enabled": true}, "created_at": 1722277887.472746, "relation_name": "\"postgres\".\"ad_reporting_docs_google_ads\".\"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\".\"ad_reporting_docs_google_ads_source\".\"stg_google_ads__ad_stats\"\n), \n\naccounts as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_google_ads_source\".\"stg_google_ads__account_history\"\n where is_most_recent_record = True\n), \n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_google_ads_source\".\"stg_google_ads__campaign_history\"\n where is_most_recent_record = True\n), \n\nad_groups as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_google_ads_source\".\"stg_google_ads__ad_group_history\"\n where is_most_recent_record = True\n),\n\nads as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_google_ads_source\".\"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": "ad_reporting_docs_google_ads", "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": "google_ads", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": "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://models/google_ads.yml", "build_path": null, "unrendered_config": {"schema": "google_ads", "materialized": "table", "enabled": true}, "created_at": 1722277887.475446, "relation_name": "\"postgres\".\"ad_reporting_docs_google_ads\".\"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\".\"ad_reporting_docs_google_ads_source\".\"stg_google_ads__ad_stats\"\n), \n\naccounts as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_google_ads_source\".\"stg_google_ads__account_history\"\n where is_most_recent_record = True\n), \n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_google_ads_source\".\"stg_google_ads__campaign_history\"\n where is_most_recent_record = True\n), \n\nad_groups as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_google_ads_source\".\"stg_google_ads__ad_group_history\"\n where is_most_recent_record = True\n),\n\nads as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_google_ads_source\".\"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": "ad_reporting_docs_google_ads", "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": "google_ads", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": "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://models/google_ads.yml", "build_path": null, "unrendered_config": {"schema": "google_ads", "materialized": "table", "enabled": true}, "created_at": 1722277887.474289, "relation_name": "\"postgres\".\"ad_reporting_docs_google_ads\".\"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\".\"ad_reporting_docs_google_ads_source\".\"stg_google_ads__ad_group_stats\"\n), \n\naccounts as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_google_ads_source\".\"stg_google_ads__account_history\"\n where is_most_recent_record = True\n), \n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_google_ads_source\".\"stg_google_ads__campaign_history\"\n where is_most_recent_record = True\n),\n\nad_groups as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_google_ads_source\".\"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": "ad_reporting_docs_google_ads", "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": "google_ads", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": "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://models/google_ads.yml", "build_path": null, "unrendered_config": {"schema": "google_ads", "materialized": "table", "enabled": true}, "created_at": 1722277887.473505, "relation_name": "\"postgres\".\"ad_reporting_docs_google_ads\".\"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\".\"ad_reporting_docs_google_ads_source\".\"stg_google_ads__account_stats\"\n), \n\naccounts as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_google_ads_source\".\"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": "ad_reporting_docs_amazon_ads_source", "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": "856073be700204ef606820c2169ee9cd0be89f51d1279269976d5b39a2a230b4"}, "config": {"enabled": true, "alias": null, "schema": "amazon_ads_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_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": []}}, "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": "amazon_ads_source", "enabled": true}, "created_at": 1722277887.514123, "relation_name": "\"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"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\n {{ fivetran_utils.fill_pass_through_columns('amazon_ads__campaign_passthrough_metrics') }}\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.fivetran_utils.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\".\"ad_reporting_docs_amazon_ads_source\".\"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 \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\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": "ad_reporting_docs_amazon_ads_source", "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": "01dec1d9720f719dec5d21790cf317d2bb279d42ac99a4a6e05929ab03e56cf8"}, "config": {"enabled": true, "alias": null, "schema": "amazon_ads_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "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": "amazon_ads_source", "enabled": true}, "created_at": 1722277887.510298, "relation_name": "\"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"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\n {{ fivetran_utils.fill_pass_through_columns('amazon_ads__ad_group_passthrough_metrics') }}\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.fivetran_utils.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\".\"ad_reporting_docs_amazon_ads_source\".\"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\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\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": "ad_reporting_docs_amazon_ads_source", "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": "5c0bb87719e7dcdc32f51e3f98c3bb68b8f69cf2b8e54e2d8910b706c4c74ddf"}, "config": {"enabled": true, "alias": null, "schema": "amazon_ads_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_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": []}}, "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": "amazon_ads_source", "enabled": true}, "created_at": 1722277887.5116422, "relation_name": "\"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"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\n {{ fivetran_utils.fill_pass_through_columns('amazon_ads__advertised_product_passthrough_metrics') }}\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.fivetran_utils.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\".\"ad_reporting_docs_amazon_ads_source\".\"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 TEXT) as \n \n advertised_asin\n \n , \n cast(null as TEXT) 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\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\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": "ad_reporting_docs_amazon_ads_source", "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": "amazon_ads_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": "amazon_ads_source", "enabled": true}, "created_at": 1722277887.516675, "relation_name": "\"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"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\".\"ad_reporting_docs_amazon_ads_source\".\"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": "ad_reporting_docs_amazon_ads_source", "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": "amazon_ads_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": "amazon_ads_source", "enabled": true}, "created_at": 1722277887.513153, "relation_name": "\"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"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\".\"ad_reporting_docs_amazon_ads_source\".\"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": "ad_reporting_docs_amazon_ads_source", "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": "amazon_ads_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": "amazon_ads_source", "enabled": true}, "created_at": 1722277887.517507, "relation_name": "\"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"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\".\"ad_reporting_docs_amazon_ads_source\".\"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": "ad_reporting_docs_amazon_ads_source", "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": "fb9efbdf909911b85d8f5e5cfe13635a50c37309a08f42b2f0622379fcb69c7c"}, "config": {"enabled": true, "alias": null, "schema": "amazon_ads_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_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": []}}, "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": "amazon_ads_source", "enabled": true}, "created_at": 1722277887.520191, "relation_name": "\"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"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\n {{ fivetran_utils.fill_pass_through_columns('amazon_ads__targeting_keyword_passthrough_metrics') }}\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.fivetran_utils.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\".\"ad_reporting_docs_amazon_ads_source\".\"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\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\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": "ad_reporting_docs_amazon_ads_source", "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": "amazon_ads_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": "amazon_ads_source", "enabled": true}, "created_at": 1722277887.518979, "relation_name": "\"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"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\".\"ad_reporting_docs_amazon_ads_source\".\"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": "ad_reporting_docs_amazon_ads_source", "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": "amazon_ads_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": "amazon_ads_source", "enabled": true}, "created_at": 1722277887.515136, "relation_name": "\"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"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\".\"ad_reporting_docs_amazon_ads_source\".\"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": "ad_reporting_docs_amazon_ads_source", "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": "amazon_ads_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": "amazon_ads_source", "enabled": true}, "created_at": 1722277887.509568, "relation_name": "\"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"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\".\"ad_reporting_docs_amazon_ads_source\".\"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": "ad_reporting_docs_amazon_ads_source", "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": "6e2f3ae524d62ca92a6a1425b667293b0cd87d68a8b867ed7ad71535de3a8ee1"}, "config": {"enabled": true, "alias": null, "schema": "amazon_ads_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_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": []}}, "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": "amazon_ads_source", "enabled": true}, "created_at": 1722277887.520929, "relation_name": "\"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"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\n {{ fivetran_utils.fill_pass_through_columns('amazon_ads__search_term_ad_keyword_passthrough_metrics') }}\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.fivetran_utils.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\".\"ad_reporting_docs_amazon_ads_source\".\"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\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\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": "ad_reporting_docs_amazon_ads_source", "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": "amazon_ads_source", "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": "amazon_ads_source", "enabled": true}, "created_at": 1722277885.1337569, "relation_name": "\"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"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\".\"ad_reporting_docs\".\"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": "ad_reporting_docs_amazon_ads_source", "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": "amazon_ads_source", "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": "amazon_ads_source", "enabled": true}, "created_at": 1722277885.137828, "relation_name": "\"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"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\".\"ad_reporting_docs\".\"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": "ad_reporting_docs_amazon_ads_source", "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": "amazon_ads_source", "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": "amazon_ads_source", "enabled": true}, "created_at": 1722277885.1419232, "relation_name": "\"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"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\".\"ad_reporting_docs\".\"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": "ad_reporting_docs_amazon_ads_source", "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": "amazon_ads_source", "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": "amazon_ads_source", "enabled": true}, "created_at": 1722277885.1459498, "relation_name": "\"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"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\".\"ad_reporting_docs\".\"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": "ad_reporting_docs_amazon_ads_source", "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": "amazon_ads_source", "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": "amazon_ads_source", "enabled": true}, "created_at": 1722277885.1506371, "relation_name": "\"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"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\".\"ad_reporting_docs\".\"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": "ad_reporting_docs_amazon_ads_source", "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": "amazon_ads_source", "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": "amazon_ads_source", "enabled": true}, "created_at": 1722277885.154687, "relation_name": "\"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"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\".\"ad_reporting_docs\".\"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": "ad_reporting_docs_amazon_ads_source", "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": "amazon_ads_source", "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": "amazon_ads_source", "enabled": true}, "created_at": 1722277885.1587892, "relation_name": "\"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"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\".\"ad_reporting_docs\".\"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": "ad_reporting_docs_amazon_ads_source", "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": "amazon_ads_source", "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": "amazon_ads_source", "enabled": true}, "created_at": 1722277885.1628191, "relation_name": "\"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"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\".\"ad_reporting_docs\".\"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": "ad_reporting_docs_amazon_ads_source", "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": "amazon_ads_source", "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": "amazon_ads_source", "enabled": true}, "created_at": 1722277885.1676428, "relation_name": "\"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"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\".\"ad_reporting_docs\".\"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": "ad_reporting_docs_amazon_ads_source", "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": "amazon_ads_source", "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": "amazon_ads_source", "enabled": true}, "created_at": 1722277885.171733, "relation_name": "\"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"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\".\"ad_reporting_docs\".\"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": "ad_reporting_docs_amazon_ads_source", "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": "amazon_ads_source", "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": "amazon_ads_source", "enabled": true}, "created_at": 1722277885.175764, "relation_name": "\"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"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\".\"ad_reporting_docs\".\"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": "ad_reporting_docs_linkedin_ads_source", "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": "linkedin_ads_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": "linkedin_ads_source", "materialized": "table", "enabled": true}, "created_at": 1722277887.577548, "relation_name": "\"postgres\".\"ad_reporting_docs_linkedin_ads_source\".\"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 \"postgres\".\"ad_reporting_docs_linkedin_ads_source\".\"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 TEXT) 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 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 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 \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": "ad_reporting_docs_linkedin_ads_source", "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": "linkedin_ads_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": "linkedin_ads_source", "materialized": "table", "enabled": true}, "created_at": 1722277887.58069, "relation_name": "\"postgres\".\"ad_reporting_docs_linkedin_ads_source\".\"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 \"postgres\".\"ad_reporting_docs_linkedin_ads_source\".\"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 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": "postgres", "schema": "ad_reporting_docs_linkedin_ads_source", "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": "linkedin_ads_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": "linkedin_ads_source", "materialized": "table", "enabled": true}, "created_at": 1722277887.576504, "relation_name": "\"postgres\".\"ad_reporting_docs_linkedin_ads_source\".\"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\".\"ad_reporting_docs_linkedin_ads_source\".\"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": "ad_reporting_docs_linkedin_ads_source", "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": "linkedin_ads_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": "linkedin_ads_source", "materialized": "table", "enabled": true}, "created_at": 1722277887.5815098, "relation_name": "\"postgres\".\"ad_reporting_docs_linkedin_ads_source\".\"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 \"postgres\".\"ad_reporting_docs_linkedin_ads_source\".\"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 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": "postgres", "schema": "ad_reporting_docs_linkedin_ads_source", "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": "linkedin_ads_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": "linkedin_ads_source", "materialized": "table", "enabled": true}, "created_at": 1722277887.5820212, "relation_name": "\"postgres\".\"ad_reporting_docs_linkedin_ads_source\".\"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 \"postgres\".\"ad_reporting_docs_linkedin_ads_source\".\"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 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": "postgres", "schema": "ad_reporting_docs_linkedin_ads_source", "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": "linkedin_ads_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": "linkedin_ads_source", "materialized": "table", "enabled": true}, "created_at": 1722277887.5759292, "relation_name": "\"postgres\".\"ad_reporting_docs_linkedin_ads_source\".\"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\".\"ad_reporting_docs_linkedin_ads_source\".\"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 cast(null as numeric(28,6)) as \n \n conversion_value_in_local_currency\n \n , \n cast(null as TEXT) as \n \n external_website_conversions\n \n , \n cast(null as TEXT) 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": "ad_reporting_docs_linkedin_ads_source", "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": "linkedin_ads_source", "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": "linkedin_ads_source", "materialized": "view", "enabled": true}, "created_at": 1722277885.266637, "relation_name": "\"postgres\".\"ad_reporting_docs_linkedin_ads_source\".\"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\".\"ad_reporting_docs\".\"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": "ad_reporting_docs_linkedin_ads_source", "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": "linkedin_ads_source", "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": "linkedin_ads_source", "materialized": "view", "enabled": true}, "created_at": 1722277885.270685, "relation_name": "\"postgres\".\"ad_reporting_docs_linkedin_ads_source\".\"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\".\"ad_reporting_docs\".\"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": "ad_reporting_docs_linkedin_ads_source", "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": "linkedin_ads_source", "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": "linkedin_ads_source", "materialized": "view", "enabled": true}, "created_at": 1722277885.2747788, "relation_name": "\"postgres\".\"ad_reporting_docs_linkedin_ads_source\".\"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\".\"ad_reporting_docs\".\"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": "ad_reporting_docs_linkedin_ads_source", "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": "linkedin_ads_source", "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": "linkedin_ads_source", "materialized": "view", "enabled": true}, "created_at": 1722277885.278798, "relation_name": "\"postgres\".\"ad_reporting_docs_linkedin_ads_source\".\"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\".\"ad_reporting_docs\".\"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": "ad_reporting_docs_linkedin_ads_source", "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": "linkedin_ads_source", "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": "linkedin_ads_source", "materialized": "view", "enabled": true}, "created_at": 1722277885.283448, "relation_name": "\"postgres\".\"ad_reporting_docs_linkedin_ads_source\".\"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\".\"ad_reporting_docs\".\"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": "ad_reporting_docs_linkedin_ads_source", "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": "linkedin_ads_source", "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": "linkedin_ads_source", "materialized": "view", "enabled": true}, "created_at": 1722277885.287473, "relation_name": "\"postgres\".\"ad_reporting_docs_linkedin_ads_source\".\"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\".\"ad_reporting_docs\".\"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": "ad_reporting_docs_amazon_ads", "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": "a94c3b782450a3a6aae32e9f9e2b40b9c4ac6fc1f948396e3dbdbaa74dfc21cb"}, "config": {"enabled": true, "alias": null, "schema": "amazon_ads", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "amazon_ads://models/amazon_ads.yml", "build_path": null, "unrendered_config": {"schema": "amazon_ads", "materialized": "table", "enabled": true}, "created_at": 1722277887.664201, "relation_name": "\"postgres\".\"ad_reporting_docs_amazon_ads\".\"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\n --use campaign report since portfolio report not provided\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='amazon_ads__campaign_passthrough_metrics', transform='sum') }}\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.fivetran_utils.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\".\"ad_reporting_docs_amazon_ads_source\".\"stg_amazon_ads__campaign_level_report\"\n), \n\naccount_info as (\n select *\n from \"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"stg_amazon_ads__profile\"\n where _fivetran_deleted = False\n),\n\nportfolios as (\n select *\n from \"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"stg_amazon_ads__portfolio_history\"\n where is_most_recent_record = True\n), \n\ncampaigns as (\n select *\n from \"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"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\n --use campaign report since portfolio report not provided\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": "ad_reporting_docs_amazon_ads", "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": "2f457e5be210330ee7901b160d5d7d63bf71bb4e34f8f5c5b7c55300a42aba58"}, "config": {"enabled": true, "alias": null, "schema": "amazon_ads", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "amazon_ads://models/amazon_ads.yml", "build_path": null, "unrendered_config": {"schema": "amazon_ads", "materialized": "table", "enabled": true}, "created_at": 1722277887.666121, "relation_name": "\"postgres\".\"ad_reporting_docs_amazon_ads\".\"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\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='amazon_ads__search_term_ad_keyword_passthrough_metrics', transform='sum') }}\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.fivetran_utils.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\".\"ad_reporting_docs_amazon_ads_source\".\"stg_amazon_ads__search_term_ad_keyword_report\"\n), \n\naccount_info as (\n select *\n from \"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"stg_amazon_ads__profile\"\n where _fivetran_deleted = False\n),\n\nportfolios as (\n select *\n from \"postgres\".\"ad_reporting_docs_amazon_ads\".\"int_amazon_ads__portfolio_history\"\n), \n\ncampaigns as (\n select *\n from \"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"stg_amazon_ads__campaign_history\"\n where is_most_recent_record = True\n),\n\nad_groups as (\n select *\n from \"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"stg_amazon_ads__ad_group_history\"\n where is_most_recent_record = True\n), \n\nkeywords as (\n select *\n from \"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"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\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": "ad_reporting_docs_amazon_ads", "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": "3585c5d7c15e1cf5e331322030439fb7b6eff2a9b8eb7052de77a2493ac8beeb"}, "config": {"enabled": true, "alias": null, "schema": "amazon_ads", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "amazon_ads://models/amazon_ads.yml", "build_path": null, "unrendered_config": {"schema": "amazon_ads", "materialized": "table", "enabled": true}, "created_at": 1722277887.6620228, "relation_name": "\"postgres\".\"ad_reporting_docs_amazon_ads\".\"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\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='amazon_ads__ad_group_passthrough_metrics', transform='sum') }}\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.fivetran_utils.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\".\"ad_reporting_docs_amazon_ads_source\".\"stg_amazon_ads__ad_group_level_report\"\n), \n\naccount_info as (\n select *\n from \"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"stg_amazon_ads__profile\"\n where _fivetran_deleted = False\n),\n\nportfolios as (\n select *\n from \"postgres\".\"ad_reporting_docs_amazon_ads\".\"int_amazon_ads__portfolio_history\"\n), \n\ncampaigns as (\n select *\n from \"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"stg_amazon_ads__campaign_history\"\n where is_most_recent_record = True\n),\n\nad_groups as (\n select *\n from \"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"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\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": "ad_reporting_docs_amazon_ads", "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": "bf37129bdfe4883e08e60a35a37b5b5db72227ba825c42b95c32e601839c6cb2"}, "config": {"enabled": true, "alias": null, "schema": "amazon_ads", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "amazon_ads://models/amazon_ads.yml", "build_path": null, "unrendered_config": {"schema": "amazon_ads", "materialized": "table", "enabled": true}, "created_at": 1722277887.665372, "relation_name": "\"postgres\".\"ad_reporting_docs_amazon_ads\".\"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\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='amazon_ads__targeting_keyword_passthrough_metrics', transform='sum') }}\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.fivetran_utils.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\".\"ad_reporting_docs_amazon_ads_source\".\"stg_amazon_ads__targeting_keyword_report\"\n), \n\naccount_info as (\n select *\n from \"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"stg_amazon_ads__profile\"\n where _fivetran_deleted = False\n),\n\nportfolios as (\n select *\n from \"postgres\".\"ad_reporting_docs_amazon_ads\".\"int_amazon_ads__portfolio_history\"\n), \n\ncampaigns as (\n select *\n from \"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"stg_amazon_ads__campaign_history\"\n where is_most_recent_record = True\n),\n\nad_groups as (\n select *\n from \"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"stg_amazon_ads__ad_group_history\"\n where is_most_recent_record = True\n), \n\nkeywords as (\n select *\n from \"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"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\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": "ad_reporting_docs_amazon_ads", "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": "15f418ea778f131475ccf400d6dac9404047b6d2ef288234457361c8aa2f44c7"}, "config": {"enabled": true, "alias": null, "schema": "amazon_ads", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "amazon_ads://models/amazon_ads.yml", "build_path": null, "unrendered_config": {"schema": "amazon_ads", "materialized": "table", "enabled": true}, "created_at": 1722277887.66351, "relation_name": "\"postgres\".\"ad_reporting_docs_amazon_ads\".\"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\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='amazon_ads__campaign_passthrough_metrics', transform='sum') }}\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.fivetran_utils.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\".\"ad_reporting_docs_amazon_ads_source\".\"stg_amazon_ads__campaign_level_report\"\n), \n\naccount_info as (\n select *\n from \"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"stg_amazon_ads__profile\"\n where _fivetran_deleted = False\n),\n\nportfolios as (\n select *\n from \"postgres\".\"ad_reporting_docs_amazon_ads\".\"int_amazon_ads__portfolio_history\"\n), \n\ncampaigns as (\n select *\n from \"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"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\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": "ad_reporting_docs_amazon_ads", "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": "ec15213abcab9fd04d4c0181ac93f996fbc89defe0baa7ae768fea6294ef36da"}, "config": {"enabled": true, "alias": null, "schema": "amazon_ads", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "amazon_ads://models/amazon_ads.yml", "build_path": null, "unrendered_config": {"schema": "amazon_ads", "materialized": "table", "enabled": true}, "created_at": 1722277887.661301, "relation_name": "\"postgres\".\"ad_reporting_docs_amazon_ads\".\"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\n --use campaign report since portfolio report not provided\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='amazon_ads__campaign_passthrough_metrics', transform='sum') }}\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.fivetran_utils.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\".\"ad_reporting_docs_amazon_ads_source\".\"stg_amazon_ads__campaign_level_report\"\n), \n\naccount_info as (\n select *\n from \"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"stg_amazon_ads__profile\"\n where _fivetran_deleted = False\n),\n\ncampaigns as (\n select *\n from \"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"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\n --use campaign report since portfolio report not provided\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": "ad_reporting_docs_amazon_ads", "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": "8bbcea2ea134023238c88eac41315b4100224ff64bb33f21d962f61f4a51bd2f"}, "config": {"enabled": true, "alias": null, "schema": "amazon_ads", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "amazon_ads://models/amazon_ads.yml", "build_path": null, "unrendered_config": {"schema": "amazon_ads", "materialized": "table", "enabled": true}, "created_at": 1722277887.662813, "relation_name": "\"postgres\".\"ad_reporting_docs_amazon_ads\".\"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\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='amazon_ads__advertised_product_passthrough_metrics', transform='sum') }}\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.fivetran_utils.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\".\"ad_reporting_docs_amazon_ads_source\".\"stg_amazon_ads__advertised_product_report\"\n), \n\naccount_info as (\n select *\n from \"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"stg_amazon_ads__profile\"\n where _fivetran_deleted = False\n),\n\nportfolios as (\n select *\n from \"postgres\".\"ad_reporting_docs_amazon_ads\".\"int_amazon_ads__portfolio_history\"\n), \n\ncampaigns as (\n select *\n from \"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"stg_amazon_ads__campaign_history\"\n where is_most_recent_record = True\n),\n\nad_groups as (\n select *\n from \"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"stg_amazon_ads__ad_group_history\"\n where is_most_recent_record = True\n), \n\nads as (\n select *\n from \"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"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\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": "ad_reporting_docs_amazon_ads", "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": "amazon_ads", "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": "amazon_ads", "materialized": "view", "enabled": true}, "created_at": 1722277885.3761332, "relation_name": "\"postgres\".\"ad_reporting_docs_amazon_ads\".\"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\".\"ad_reporting_docs_amazon_ads_source\".\"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": "ad_reporting_docs_facebook_ads", "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": "9410d7fd5d0b0de09cba20f7b1701121eed0ece1ceb119333401a0e8d5c95548"}, "config": {"enabled": true, "alias": null, "schema": "facebook_ads", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "facebook_ads://models/facebook.yml", "build_path": null, "unrendered_config": {"schema": "facebook_ads", "materialized": "table", "enabled": true}, "created_at": 1722277887.701449, "relation_name": "\"postgres\".\"ad_reporting_docs_facebook_ads\".\"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\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\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='facebook_ads__basic_ad_passthrough_metrics', transform = 'sum') }}\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 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__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.fivetran_utils.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__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\".\"ad_reporting_docs_facebook_ads_source\".\"stg_facebook_ads__basic_ad\"\n\n), \n\ncreatives as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_facebook_ads\".\"int_facebook_ads__creative_history\"\n\n), \n\naccounts as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_facebook_ads_source\".\"stg_facebook_ads__account_history\"\n where is_most_recent_record = true\n\n), \n\nads as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_facebook_ads_source\".\"stg_facebook_ads__ad_history\"\n where is_most_recent_record = true\n\n), \n\nad_sets as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_facebook_ads_source\".\"stg_facebook_ads__ad_set_history\"\n where is_most_recent_record = true\n\n), \n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_facebook_ads_source\".\"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\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 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": "ad_reporting_docs_facebook_ads", "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": "facebook_ads", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": "facebook_ads", "materialized": "table", "enabled": true}, "created_at": 1722277887.7043462, "relation_name": "\"postgres\".\"ad_reporting_docs_facebook_ads\".\"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\".\"ad_reporting_docs_facebook_ads_source\".\"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": "ad_reporting_docs_facebook_ads", "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": "07b12378e6c3ee119d610c70866656fd4413354742494e25ea0a697b3e1baace"}, "config": {"enabled": true, "alias": null, "schema": "facebook_ads", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "facebook_ads://models/facebook.yml", "build_path": null, "unrendered_config": {"schema": "facebook_ads", "materialized": "table", "enabled": true}, "created_at": 1722277887.7030451, "relation_name": "\"postgres\".\"ad_reporting_docs_facebook_ads\".\"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\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\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='facebook_ads__basic_ad_passthrough_metrics', transform = 'sum') }}\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 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": "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.fivetran_utils.persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__basic_ad", "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\".\"ad_reporting_docs_facebook_ads_source\".\"stg_facebook_ads__basic_ad\"\n\n), \n\naccounts as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_facebook_ads_source\".\"stg_facebook_ads__account_history\"\n where is_most_recent_record = true\n\n),\n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_facebook_ads_source\".\"stg_facebook_ads__campaign_history\"\n where is_most_recent_record = true\n\n),\n\nads as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_facebook_ads_source\".\"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\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 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": "ad_reporting_docs_facebook_ads", "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": "7c56dfc810becb760e32cdff86b02d2328848bc3402300faa8f90266b39eb0ad"}, "config": {"enabled": true, "alias": null, "schema": "facebook_ads", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "facebook_ads://models/facebook.yml", "build_path": null, "unrendered_config": {"schema": "facebook_ads", "materialized": "table", "enabled": true}, "created_at": 1722277887.70347, "relation_name": "\"postgres\".\"ad_reporting_docs_facebook_ads\".\"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\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\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='facebook_ads__basic_ad_passthrough_metrics', transform = 'sum') }}\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_facebook_ads__basic_ad", "package": null, "version": null}, {"name": "stg_facebook_ads__account_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__basic_ad", "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\".\"ad_reporting_docs_facebook_ads_source\".\"stg_facebook_ads__basic_ad\"\n\n), \n\naccounts as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_facebook_ads_source\".\"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\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.facebook_ads.facebook_ads__ad_report": {"database": "postgres", "schema": "ad_reporting_docs_facebook_ads", "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": "f382a5d9801d8b2cef8e358c6691347c9c6a346d7b1e1c0ed4e2ba81e33f166d"}, "config": {"enabled": true, "alias": null, "schema": "facebook_ads", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "facebook_ads://models/facebook.yml", "build_path": null, "unrendered_config": {"schema": "facebook_ads", "materialized": "table", "enabled": true}, "created_at": 1722277887.702057, "relation_name": "\"postgres\".\"ad_reporting_docs_facebook_ads\".\"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\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 sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend\n\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='facebook_ads__basic_ad_passthrough_metrics', transform = 'sum') }}\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 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(10) }}\n)\n\nselect *\nfrom joined", "language": "sql", "refs": [{"name": "stg_facebook_ads__basic_ad", "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.fivetran_utils.persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__basic_ad", "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\".\"ad_reporting_docs_facebook_ads_source\".\"stg_facebook_ads__basic_ad\"\n\n), \n\naccounts as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_facebook_ads_source\".\"stg_facebook_ads__account_history\"\n where is_most_recent_record = true\n\n),\n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_facebook_ads_source\".\"stg_facebook_ads__campaign_history\"\n where is_most_recent_record = true\n\n),\n\nad_sets as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_facebook_ads_source\".\"stg_facebook_ads__ad_set_history\"\n where is_most_recent_record = true\n\n),\n\nads as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_facebook_ads_source\".\"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 sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend\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 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\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": "ad_reporting_docs_facebook_ads", "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": "3a0c7f0dc6eabe850e971dd31b5845c1d99e7ffbcaf5d566a6a4f8409fa6b803"}, "config": {"enabled": true, "alias": null, "schema": "facebook_ads", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "facebook_ads://models/facebook.yml", "build_path": null, "unrendered_config": {"schema": "facebook_ads", "materialized": "table", "enabled": true}, "created_at": 1722277887.702573, "relation_name": "\"postgres\".\"ad_reporting_docs_facebook_ads\".\"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\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 sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend\n\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='facebook_ads__basic_ad_passthrough_metrics', transform = 'sum') }}\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 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(13) }}\n)\n\nselect *\nfrom joined", "language": "sql", "refs": [{"name": "stg_facebook_ads__basic_ad", "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.fivetran_utils.persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__basic_ad", "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\".\"ad_reporting_docs_facebook_ads_source\".\"stg_facebook_ads__basic_ad\"\n\n), \n\naccounts as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_facebook_ads_source\".\"stg_facebook_ads__account_history\"\n where is_most_recent_record = true\n\n),\n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_facebook_ads_source\".\"stg_facebook_ads__campaign_history\"\n where is_most_recent_record = true\n\n),\n\nad_sets as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_facebook_ads_source\".\"stg_facebook_ads__ad_set_history\"\n where is_most_recent_record = true\n\n),\n\nads as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_facebook_ads_source\".\"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 sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend\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 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\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": "ad_reporting_docs_facebook_ads", "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": "facebook_ads", "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": "facebook_ads", "materialized": "view", "enabled": true}, "created_at": 1722277885.43017, "relation_name": "\"postgres\".\"ad_reporting_docs_facebook_ads\".\"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\".\"ad_reporting_docs_facebook_ads_source\".\"stg_facebook_ads__creative_history\"\n where is_most_recent_record = true\n\n), \n\nurl_tags as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_facebook_ads\".\"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.snapchat_ads.snapchat_ads__ad_report": {"database": "postgres", "schema": "ad_reporting_docs_snapchat_ads", "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": "d5d4dfd8b53b975f2cee2da78d00072727921ef264bb51eee0087f5e568770e7"}, "config": {"enabled": true, "alias": null, "schema": "snapchat_ads", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "snapchat_ads://models/snapchat.yml", "build_path": null, "unrendered_config": {"schema": "snapchat_ads", "materialized": "table", "enabled": true}, "created_at": 1722277887.736119, "relation_name": "\"postgres\".\"ad_reporting_docs_snapchat_ads\".\"snapchat_ads__ad_report\"", "raw_code": "{{ config(enabled=var('ad_reporting__snapchat_ads_enabled', true)) }}\n\nwith ad_hourly as (\n\n select *\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 \n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='snapchat_ads__ad_hourly_passthrough_metrics', transform = 'sum') }}\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.fivetran_utils.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\".\"ad_reporting_docs_snapchat_ads_source\".\"stg_snapchat_ads__creative_history\"\n where is_most_recent_record = true\n\n), url_tags as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"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 from \"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"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\".\"ad_reporting_docs_snapchat_ads_source\".\"stg_snapchat_ads__ad_account_history\"\n where is_most_recent_record = true\n\n), ads as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"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 \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\".\"ad_reporting_docs_snapchat_ads_source\".\"stg_snapchat_ads__creative_history\"\n where is_most_recent_record = true\n\n), url_tags as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"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": "ad_reporting_docs_snapchat_ads", "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": "15688ef56b9031405b7551bbd87199b11b755624066be6abe16d52a0a1605b98"}, "config": {"enabled": true, "alias": null, "schema": "snapchat_ads", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "snapchat_ads://models/snapchat.yml", "build_path": null, "unrendered_config": {"schema": "snapchat_ads", "materialized": "table", "enabled": true}, "created_at": 1722277887.7382982, "relation_name": "\"postgres\".\"ad_reporting_docs_snapchat_ads\".\"snapchat_ads__url_report\"", "raw_code": "{{ config(enabled=var('ad_reporting__snapchat_ads_enabled', true)) }}\n\nwith ad_hourly as (\n\n select *\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 \n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='snapchat_ads__ad_hourly_passthrough_metrics', transform = 'sum') }}\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.fivetran_utils.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\".\"ad_reporting_docs_snapchat_ads_source\".\"stg_snapchat_ads__creative_history\"\n where is_most_recent_record = true\n\n), url_tags as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"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 from \"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"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\".\"ad_reporting_docs_snapchat_ads_source\".\"stg_snapchat_ads__ad_account_history\"\n where is_most_recent_record = true\n\n), ads as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"stg_snapchat_ads__ad_history\"\n where is_most_recent_record = true\n\n), ad_squads as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"stg_snapchat_ads__ad_squad_history\"\n where is_most_recent_record = true\n\n), campaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"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 \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\".\"ad_reporting_docs_snapchat_ads_source\".\"stg_snapchat_ads__creative_history\"\n where is_most_recent_record = true\n\n), url_tags as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"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": "ad_reporting_docs_snapchat_ads", "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": "edbd01f5a56bdd4fbbee68f8d3fae2ca3a34524f2b086d6fd78a8b473d3a785c"}, "config": {"enabled": true, "alias": null, "schema": "snapchat_ads", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "snapchat_ads://models/snapchat.yml", "build_path": null, "unrendered_config": {"schema": "snapchat_ads", "materialized": "table", "enabled": true}, "created_at": 1722277887.735598, "relation_name": "\"postgres\".\"ad_reporting_docs_snapchat_ads\".\"snapchat_ads__account_report\"", "raw_code": "{{ config(enabled=var('ad_reporting__snapchat_ads_enabled', true)) }}\n\nwith ad_hourly as (\n\n select *\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\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='snapchat_ads__ad_hourly_passthrough_metrics', transform = 'sum') }}\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.fivetran_utils.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 from \"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"stg_snapchat_ads__ad_hourly_report\"\n\n), account as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"stg_snapchat_ads__ad_account_history\"\n where is_most_recent_record = true\n\n), ads as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"stg_snapchat_ads__ad_history\"\n where is_most_recent_record = true\n\n), ad_squads as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"stg_snapchat_ads__ad_squad_history\"\n where is_most_recent_record = true\n\n), campaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"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\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": "ad_reporting_docs_snapchat_ads", "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": "c5a6732162b500b1c3ca0ea67c0c32114467efec03629a895664d239131e8a89"}, "config": {"enabled": true, "alias": null, "schema": "snapchat_ads", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "snapchat_ads://models/snapchat.yml", "build_path": null, "unrendered_config": {"schema": "snapchat_ads", "materialized": "table", "enabled": true}, "created_at": 1722277887.737524, "relation_name": "\"postgres\".\"ad_reporting_docs_snapchat_ads\".\"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 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 \n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='snapchat_ads__ad_squad_hourly_passthrough_metrics', transform = 'sum') }}\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.fivetran_utils.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 from \"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"stg_snapchat_ads__ad_squad_hourly_report\"\n\n), account as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"stg_snapchat_ads__ad_account_history\"\n where is_most_recent_record = true\n\n), ad_squads as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"stg_snapchat_ads__ad_squad_history\"\n where is_most_recent_record = true\n\n), campaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"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 \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": "ad_reporting_docs_snapchat_ads", "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": "4706ff55fcc94cc2e1c570f4cdc2b7e0db84ecd4db5c77650753a23b8976f4e7"}, "config": {"enabled": true, "alias": null, "schema": "snapchat_ads", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "snapchat_ads://models/snapchat.yml", "build_path": null, "unrendered_config": {"schema": "snapchat_ads", "materialized": "table", "enabled": true}, "created_at": 1722277887.73663, "relation_name": "\"postgres\".\"ad_reporting_docs_snapchat_ads\".\"snapchat_ads__campaign_report\"", "raw_code": "{{ config(enabled=var('ad_reporting__snapchat_ads_enabled', true)) }}\n\nwith campaign_hourly as (\n\n select *\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 \n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='snapchat_ads__campaign_hourly_report_passthrough_metrics', transform = 'sum') }}\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.fivetran_utils.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 from \"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"stg_snapchat_ads__campaign_hourly_report\"\n\n), account as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"stg_snapchat_ads__ad_account_history\"\n where is_most_recent_record = true\n\n), campaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"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 \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": "ad_reporting_docs_snapchat_ads", "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": "snapchat_ads", "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": "snapchat_ads", "materialized": "ephemeral", "enabled": true}, "created_at": 1722277885.477077, "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\".\"ad_reporting_docs_snapchat_ads_source\".\"stg_snapchat_ads__creative_history\"\n where is_most_recent_record = true\n\n), url_tags as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"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": "ad_reporting_docs_google_ads_source", "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": "google_ads_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": "google_ads_source", "materialized": "table", "enabled": true}, "created_at": 1722277887.7759721, "relation_name": "\"postgres\".\"ad_reporting_docs_google_ads_source\".\"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\".\"ad_reporting_docs_google_ads_source\".\"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": "ad_reporting_docs_google_ads_source", "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": "google_ads_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": "google_ads_source", "materialized": "table", "enabled": true}, "created_at": 1722277887.777687, "relation_name": "\"postgres\".\"ad_reporting_docs_google_ads_source\".\"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\".\"ad_reporting_docs_google_ads_source\".\"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": "ad_reporting_docs_google_ads_source", "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": "google_ads_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": "google_ads_source", "materialized": "table", "enabled": true}, "created_at": 1722277887.772257, "relation_name": "\"postgres\".\"ad_reporting_docs_google_ads_source\".\"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\".\"ad_reporting_docs_google_ads_source\".\"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": "ad_reporting_docs_google_ads_source", "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": "google_ads_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": "google_ads_source", "materialized": "table", "enabled": true}, "created_at": 1722277887.77295, "relation_name": "\"postgres\".\"ad_reporting_docs_google_ads_source\".\"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\".\"ad_reporting_docs_google_ads_source\".\"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": "ad_reporting_docs_google_ads_source", "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": "google_ads_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": "google_ads_source", "materialized": "table", "enabled": true}, "created_at": 1722277887.777142, "relation_name": "\"postgres\".\"ad_reporting_docs_google_ads_source\".\"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\".\"ad_reporting_docs_google_ads_source\".\"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": "ad_reporting_docs_google_ads_source", "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": "google_ads_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": "google_ads_source", "materialized": "table", "enabled": true}, "created_at": 1722277887.774007, "relation_name": "\"postgres\".\"ad_reporting_docs_google_ads_source\".\"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\".\"ad_reporting_docs_google_ads_source\".\"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 cast(null as integer) as \n \n conversions\n \n , \n cast(null as integer) as \n \n conversions_value\n \n , \n cast(null as integer) 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": "ad_reporting_docs_google_ads_source", "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": "google_ads_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": "google_ads_source", "materialized": "table", "enabled": true}, "created_at": 1722277887.775402, "relation_name": "\"postgres\".\"ad_reporting_docs_google_ads_source\".\"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\".\"ad_reporting_docs_google_ads_source\".\"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": "ad_reporting_docs_google_ads_source", "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": "google_ads_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": "google_ads_source", "materialized": "table", "enabled": true}, "created_at": 1722277887.776521, "relation_name": "\"postgres\".\"ad_reporting_docs_google_ads_source\".\"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\".\"ad_reporting_docs_google_ads_source\".\"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": "ad_reporting_docs_google_ads_source", "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": "google_ads_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": "google_ads_source", "materialized": "table", "enabled": true}, "created_at": 1722277887.774714, "relation_name": "\"postgres\".\"ad_reporting_docs_google_ads_source\".\"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\".\"ad_reporting_docs_google_ads_source\".\"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": "ad_reporting_docs_google_ads_source", "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": "google_ads_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": "google_ads_source", "materialized": "table", "enabled": true}, "created_at": 1722277887.771768, "relation_name": "\"postgres\".\"ad_reporting_docs_google_ads_source\".\"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\".\"ad_reporting_docs_google_ads_source\".\"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": "ad_reporting_docs_google_ads_source", "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": "google_ads_source", "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": "google_ads_source", "materialized": "view", "enabled": true}, "created_at": 1722277885.635969, "relation_name": "\"postgres\".\"ad_reporting_docs_google_ads_source\".\"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\".\"ad_reporting_docs\".\"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": "ad_reporting_docs_google_ads_source", "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": "google_ads_source", "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": "google_ads_source", "materialized": "view", "enabled": true}, "created_at": 1722277885.6400561, "relation_name": "\"postgres\".\"ad_reporting_docs_google_ads_source\".\"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\".\"ad_reporting_docs\".\"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": "ad_reporting_docs_google_ads_source", "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": "google_ads_source", "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": "google_ads_source", "materialized": "view", "enabled": true}, "created_at": 1722277885.644078, "relation_name": "\"postgres\".\"ad_reporting_docs_google_ads_source\".\"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\".\"ad_reporting_docs\".\"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": "ad_reporting_docs_google_ads_source", "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": "google_ads_source", "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": "google_ads_source", "materialized": "view", "enabled": true}, "created_at": 1722277885.648798, "relation_name": "\"postgres\".\"ad_reporting_docs_google_ads_source\".\"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\".\"ad_reporting_docs\".\"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": "ad_reporting_docs_google_ads_source", "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": "google_ads_source", "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": "google_ads_source", "materialized": "view", "enabled": true}, "created_at": 1722277885.652856, "relation_name": "\"postgres\".\"ad_reporting_docs_google_ads_source\".\"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\".\"ad_reporting_docs\".\"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": "ad_reporting_docs_google_ads_source", "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": "google_ads_source", "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": "google_ads_source", "materialized": "view", "enabled": true}, "created_at": 1722277885.656883, "relation_name": "\"postgres\".\"ad_reporting_docs_google_ads_source\".\"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\".\"ad_reporting_docs\".\"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": "ad_reporting_docs_google_ads_source", "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": "google_ads_source", "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": "google_ads_source", "materialized": "view", "enabled": true}, "created_at": 1722277885.660917, "relation_name": "\"postgres\".\"ad_reporting_docs_google_ads_source\".\"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\".\"ad_reporting_docs\".\"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": "ad_reporting_docs_google_ads_source", "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": "google_ads_source", "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": "google_ads_source", "materialized": "view", "enabled": true}, "created_at": 1722277885.665719, "relation_name": "\"postgres\".\"ad_reporting_docs_google_ads_source\".\"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\".\"ad_reporting_docs\".\"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": "ad_reporting_docs_google_ads_source", "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": "google_ads_source", "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": "google_ads_source", "materialized": "view", "enabled": true}, "created_at": 1722277885.669759, "relation_name": "\"postgres\".\"ad_reporting_docs_google_ads_source\".\"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\".\"ad_reporting_docs\".\"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": "ad_reporting_docs_google_ads_source", "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": "google_ads_source", "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": "google_ads_source", "materialized": "view", "enabled": true}, "created_at": 1722277885.673805, "relation_name": "\"postgres\".\"ad_reporting_docs_google_ads_source\".\"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\".\"ad_reporting_docs\".\"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": "ad_reporting_docs_apple_search_ads", "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": "d367f05d831caf52bea1206a52f962555cdddb91c63816b31d1698803472dd7f"}, "config": {"enabled": true, "alias": null, "schema": "apple_search_ads", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}, "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": "apple_search_ads", "materialized": "table", "enabled": true}, "created_at": 1722277887.877432, "relation_name": "\"postgres\".\"ad_reporting_docs_apple_search_ads\".\"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.impressions) as impressions,\n sum(report.spend) as spend\n\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='apple_search_ads__ad_passthrough_metrics', transform = 'sum') }}\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.fivetran_utils.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\".\"ad_reporting_docs_apple_search_ads_source\".\"stg_apple_search_ads__ad_report\"\n), \n\nad as (\n\n select * \n from \"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"stg_apple_search_ads__ad_history\"\n where is_most_recent_record = True\n), \n\nad_group as (\n\n select * \n from \"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"stg_apple_search_ads__ad_group_history\"\n where is_most_recent_record = True\n), \n\ncampaign as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"stg_apple_search_ads__campaign_history\"\n where is_most_recent_record = True\n), \n\norganization as (\n\n select * \n from \"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"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.impressions) as impressions,\n sum(report.spend) as spend\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": "postgres", "schema": "ad_reporting_docs_apple_search_ads", "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": "b980eb893f6ae4c41281e2d6b0d24d8eb3cc5f0bde0804df3d1ce797f703e215"}, "config": {"enabled": true, "alias": null, "schema": "apple_search_ads", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}, "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": "apple_search_ads", "materialized": "table", "enabled": true}, "created_at": 1722277887.835977, "relation_name": "\"postgres\".\"ad_reporting_docs_apple_search_ads\".\"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.impressions) as impressions,\n sum(report.spend) as spend\n\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='apple_search_ads__ad_group_passthrough_metrics', transform = 'sum') }}\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.fivetran_utils.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\".\"ad_reporting_docs_apple_search_ads_source\".\"stg_apple_search_ads__ad_group_report\"\n), \n\nad_group as (\n\n select * \n from \"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"stg_apple_search_ads__ad_group_history\"\n where is_most_recent_record = True\n), \n\ncampaign as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"stg_apple_search_ads__campaign_history\"\n where is_most_recent_record = True\n), \n\norganization as (\n\n select * \n from \"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"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.impressions) as impressions,\n sum(report.spend) as spend\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": "postgres", "schema": "ad_reporting_docs_apple_search_ads", "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": "4f5f3e0efae4692aabdd3d86ab2671a762ba3bf0be7c29362109eefcb7efab8a"}, "config": {"enabled": true, "alias": null, "schema": "apple_search_ads", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}, "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": "apple_search_ads", "materialized": "table", "enabled": true}, "created_at": 1722277887.879057, "relation_name": "\"postgres\".\"ad_reporting_docs_apple_search_ads\".\"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.impressions) as impressions,\n sum(report.spend) as spend\n\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='apple_search_ads__keyword_passthrough_metrics', transform = 'sum') }}\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.fivetran_utils.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\".\"ad_reporting_docs_apple_search_ads_source\".\"stg_apple_search_ads__keyword_report\"\n), \n\nkeyword as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"stg_apple_search_ads__keyword_history\"\n where is_most_recent_record = True\n), \n\nad_group as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"stg_apple_search_ads__ad_group_history\"\n where is_most_recent_record = True\n), \n\ncampaign as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"stg_apple_search_ads__campaign_history\"\n where is_most_recent_record = True\n), \n\norganization as (\n\n select * \n from \"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"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.impressions) as impressions,\n sum(report.spend) as spend\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": "postgres", "schema": "ad_reporting_docs_apple_search_ads", "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": "f656c76a51063932a93b88077adc66c9776df7c72c09a15a8efe16bbadba9170"}, "config": {"enabled": true, "alias": null, "schema": "apple_search_ads", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}, "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": "apple_search_ads", "materialized": "table", "enabled": true}, "created_at": 1722277887.8804328, "relation_name": "\"postgres\".\"ad_reporting_docs_apple_search_ads\".\"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.impressions) as impressions,\n sum(report.spend) as spend\n\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='apple_search_ads__search_term_passthrough_metrics', transform = 'sum') }}\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.fivetran_utils.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\".\"ad_reporting_docs_apple_search_ads_source\".\"stg_apple_search_ads__search_term_report\"\n), \n\ncampaign as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"stg_apple_search_ads__campaign_history\"\n where is_most_recent_record = True\n), \n\norganization as (\n\n select * \n from \"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"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.impressions) as impressions,\n sum(report.spend) as spend\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": "postgres", "schema": "ad_reporting_docs_apple_search_ads", "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": "ec48f7ba86516c32a387334a1763942c86da43ff05ff1323cd976a2e326a7a5b"}, "config": {"enabled": true, "alias": null, "schema": "apple_search_ads", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}, "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": "apple_search_ads", "materialized": "table", "enabled": true}, "created_at": 1722277887.878144, "relation_name": "\"postgres\".\"ad_reporting_docs_apple_search_ads\".\"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.impressions) as impressions,\n sum(report.spend) as spend\n\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='apple_search_ads__campaign_passthrough_metrics', transform = 'sum') }}\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.fivetran_utils.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\".\"ad_reporting_docs_apple_search_ads_source\".\"stg_apple_search_ads__campaign_report\"\n\n), \n\ncampaign as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"stg_apple_search_ads__campaign_history\"\n where is_most_recent_record = True\n), \n\norganization as (\n\n select * \n from \"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"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.impressions) as impressions,\n sum(report.spend) as spend\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": "postgres", "schema": "ad_reporting_docs_apple_search_ads", "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": "461756427ca6788b6e0ae8d5018329dd197b1e78e267247cdbfa184f205c38d3"}, "config": {"enabled": true, "alias": null, "schema": "apple_search_ads", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}, "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": "apple_search_ads", "materialized": "table", "enabled": true}, "created_at": 1722277887.879595, "relation_name": "\"postgres\".\"ad_reporting_docs_apple_search_ads\".\"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.impressions) as impressions,\n sum(report.spend) as spend\n\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='apple_search_ads__campaign_passthrough_metrics', transform = 'sum') }}\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.fivetran_utils.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\".\"ad_reporting_docs_apple_search_ads_source\".\"stg_apple_search_ads__campaign_report\"\n), \n\ncampaign as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"stg_apple_search_ads__campaign_history\"\n where is_most_recent_record = True\n), \n\norganization as (\n\n select * \n from \"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"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.impressions) as impressions,\n sum(report.spend) as spend\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": "postgres", "schema": "ad_reporting_docs_ad_reporting", "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": "39520ba5982f7709a169631745d9c6861e70da2711ea9e183db827b2572465be"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "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", "enabled": true}, "created_at": 1722277887.928242, "relation_name": "\"postgres\".\"ad_reporting_docs_ad_reporting\".\"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\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='ad_reporting__campaign_passthrough_metrics', transform = 'sum') }}\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.fivetran_utils.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\ntwitter_ads as (\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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_twitter_ads\".\"twitter_ads__campaign_report\"\n\n),\n\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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_facebook_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_google_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_microsoft_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_apple_search_ads\".\"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(impressions as integer) as impressions\n\n ,cast(cost as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_linkedin_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_pinterest\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_snapchat_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_tiktok_ads\".\"tiktok_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(impressions as integer) as impressions\n\n ,cast(cost as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_amazon_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_reddit_ads\".\"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\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\ntwitter_ads as (\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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_twitter_ads\".\"twitter_ads__campaign_report\"\n\n),\n\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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_facebook_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_google_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_microsoft_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_apple_search_ads\".\"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(impressions as integer) as impressions\n\n ,cast(cost as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_linkedin_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_pinterest\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_snapchat_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_tiktok_ads\".\"tiktok_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(impressions as integer) as impressions\n\n ,cast(cost as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_amazon_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_reddit_ads\".\"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": "ad_reporting_docs_ad_reporting", "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": "521cdb8a8229169f8d13f587f55a2f5d48f97d110b99ab292c328eea1589272f"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "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", "enabled": true}, "created_at": 1722277887.926545, "relation_name": "\"postgres\".\"ad_reporting_docs_ad_reporting\".\"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\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='ad_reporting__account_passthrough_metrics', transform = 'sum') }}\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.fivetran_utils.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\ntwitter_ads as (\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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_twitter_ads\".\"twitter_ads__account_report\"\n\n),\n\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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_facebook_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_google_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_microsoft_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_apple_search_ads\".\"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(impressions as integer) as impressions\n\n ,cast(cost as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_linkedin_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_pinterest\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_snapchat_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_tiktok_ads\".\"tiktok_ads__advertiser_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(impressions as integer) as impressions\n\n ,cast(cost as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_amazon_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_reddit_ads\".\"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\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\ntwitter_ads as (\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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_twitter_ads\".\"twitter_ads__account_report\"\n\n),\n\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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_facebook_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_google_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_microsoft_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_apple_search_ads\".\"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(impressions as integer) as impressions\n\n ,cast(cost as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_linkedin_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_pinterest\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_snapchat_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_tiktok_ads\".\"tiktok_ads__advertiser_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(impressions as integer) as impressions\n\n ,cast(cost as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_amazon_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_reddit_ads\".\"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": "ad_reporting_docs_ad_reporting", "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": "889440899ce282315594d9a9badda69d8ae6cc0603a676823d929e2bbbff6bba"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "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", "enabled": true}, "created_at": 1722277887.9271722, "relation_name": "\"postgres\".\"ad_reporting_docs_ad_reporting\".\"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\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='ad_reporting__ad_group_passthrough_metrics', transform = 'sum') }}\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.fivetran_utils.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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_google_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_microsoft_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_apple_search_ads\".\"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(impressions as integer) as impressions\n\n ,cast(cost as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_linkedin_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_facebook_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_pinterest\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_snapchat_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_tiktok_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_twitter_ads\".\"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(impressions as integer) as impressions\n\n ,cast(cost as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_amazon_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_reddit_ads\".\"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\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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_google_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_microsoft_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_apple_search_ads\".\"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(impressions as integer) as impressions\n\n ,cast(cost as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_linkedin_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_facebook_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_pinterest\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_snapchat_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_tiktok_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_twitter_ads\".\"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(impressions as integer) as impressions\n\n ,cast(cost as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_amazon_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_reddit_ads\".\"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": "ad_reporting_docs_ad_reporting", "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": "d61428c98ad8ccb22a35dfa00afc711bc49238444a3abead01574b4c5788614c"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "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", "enabled": true}, "created_at": 1722277887.929634, "relation_name": "\"postgres\".\"ad_reporting_docs_ad_reporting\".\"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\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='ad_reporting__search_passthrough_metrics', transform = 'sum') }}\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.fivetran_utils.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(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\".\"ad_reporting_docs_microsoft_ads\".\"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(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\".\"ad_reporting_docs_apple_search_ads\".\"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(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\".\"ad_reporting_docs_amazon_ads\".\"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\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(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\".\"ad_reporting_docs_microsoft_ads\".\"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(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\".\"ad_reporting_docs_apple_search_ads\".\"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(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\".\"ad_reporting_docs_amazon_ads\".\"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": "ad_reporting_docs_ad_reporting", "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": "f43d14ebf288a05fae84765c32cd1e4fab17f9d5729f0a5f07d0b8d8726c5320"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "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", "enabled": true}, "created_at": 1722277887.9277508, "relation_name": "\"postgres\".\"ad_reporting_docs_ad_reporting\".\"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 \n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='ad_reporting__ad_passthrough_metrics', transform = 'sum') }}\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.fivetran_utils.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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_google_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_microsoft_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_apple_search_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_facebook_ads\".\"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(impressions as integer) as impressions\n\n ,cast(cost as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_linkedin_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_pinterest\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_snapchat_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_tiktok_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_twitter_ads\".\"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(impressions as integer) as impressions\n\n ,cast(cost as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_amazon_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_reddit_ads\".\"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 \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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_google_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_microsoft_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_apple_search_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_facebook_ads\".\"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(impressions as integer) as impressions\n\n ,cast(cost as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_linkedin_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_pinterest\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_snapchat_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_tiktok_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_twitter_ads\".\"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(impressions as integer) as impressions\n\n ,cast(cost as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_amazon_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_reddit_ads\".\"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": "ad_reporting_docs_ad_reporting", "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": "855cf40d462ef88c98929abc61add5a0b9f173f4754bdbd419e7f935d9713e94"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "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", "enabled": true}, "created_at": 1722277887.9303281, "relation_name": "\"postgres\".\"ad_reporting_docs_ad_reporting\".\"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\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='ad_reporting__ad_passthrough_metrics', transform = 'sum') }}\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.fivetran_utils.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(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\".\"ad_reporting_docs_google_ads\".\"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(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\".\"ad_reporting_docs_microsoft_ads\".\"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(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\".\"ad_reporting_docs_facebook_ads\".\"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(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\".\"ad_reporting_docs_linkedin_ads\".\"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(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\".\"ad_reporting_docs_pinterest\".\"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(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\".\"ad_reporting_docs_snapchat_ads\".\"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(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\".\"ad_reporting_docs_tiktok_ads\".\"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(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\".\"ad_reporting_docs_twitter_ads\".\"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(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\".\"ad_reporting_docs_reddit_ads\".\"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\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(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\".\"ad_reporting_docs_google_ads\".\"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(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\".\"ad_reporting_docs_microsoft_ads\".\"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(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\".\"ad_reporting_docs_facebook_ads\".\"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(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\".\"ad_reporting_docs_linkedin_ads\".\"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(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\".\"ad_reporting_docs_pinterest\".\"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(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\".\"ad_reporting_docs_snapchat_ads\".\"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(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\".\"ad_reporting_docs_tiktok_ads\".\"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(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\".\"ad_reporting_docs_twitter_ads\".\"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(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\".\"ad_reporting_docs_reddit_ads\".\"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": "ad_reporting_docs_ad_reporting", "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": "e30edfebc8d8451834481e08f8cadbbb5c82c2d37d3c1596d7d9666bdcf603b4"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "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", "enabled": true}, "created_at": 1722277887.928873, "relation_name": "\"postgres\".\"ad_reporting_docs_ad_reporting\".\"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\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='ad_reporting__keyword_passthrough_metrics', transform = 'sum') }}\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.fivetran_utils.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(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\".\"ad_reporting_docs_apple_search_ads\".\"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(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\".\"ad_reporting_docs_google_ads\".\"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(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\".\"ad_reporting_docs_microsoft_ads\".\"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(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\".\"ad_reporting_docs_pinterest\".\"pinterest_ads__keyword_report\"\n\n),\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(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\".\"ad_reporting_docs_amazon_ads\".\"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\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(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\".\"ad_reporting_docs_apple_search_ads\".\"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(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\".\"ad_reporting_docs_google_ads\".\"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(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\".\"ad_reporting_docs_microsoft_ads\".\"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(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\".\"ad_reporting_docs_pinterest\".\"pinterest_ads__keyword_report\"\n\n),\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(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\".\"ad_reporting_docs_amazon_ads\".\"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": "postgres", "schema": "ad_reporting_docs_ad_reporting", "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", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_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", "enabled": true}, "created_at": 1722277885.77356, "relation_name": "\"postgres\".\"ad_reporting_docs_ad_reporting\".\"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": "ad_reporting_docs_int_ad_reporting", "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": "fa96bcb55ec7c848acb1ee90f5026164682349b38262b9fa4b3b0f56803c0851"}, "config": {"enabled": true, "alias": null, "schema": "int_ad_reporting", "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": "int_ad_reporting", "enabled": true}, "created_at": 1722277885.799767, "relation_name": null, "raw_code": "{% set enabled_packages = get_enabled_packages() %}\n{{ config(enabled=is_enabled(enabled_packages)) }}\n\nwith\n{% for package in ['twitter_ads', '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 },\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 },\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 },\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 },\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 },\n relation=ref('tiktok_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 },\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 },\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": "twitter_ads__campaign_report", "package": null, "version": null}, {"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": "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.twitter_ads.twitter_ads__campaign_report", "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.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\ntwitter_ads as (\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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_twitter_ads\".\"twitter_ads__campaign_report\"\n\n),\n\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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_facebook_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_google_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_microsoft_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_apple_search_ads\".\"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(impressions as integer) as impressions\n\n ,cast(cost as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_linkedin_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_pinterest\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_snapchat_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_tiktok_ads\".\"tiktok_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(impressions as integer) as impressions\n\n ,cast(cost as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_amazon_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_reddit_ads\".\"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": "ad_reporting_docs_int_ad_reporting", "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": "a1879451acab980879ad6e8cd4b29e3a7541616294af5b3a4fbe9664e6ad2271"}, "config": {"enabled": true, "alias": null, "schema": "int_ad_reporting", "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": "int_ad_reporting", "enabled": true}, "created_at": 1722277885.870006, "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 },\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 },\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 },\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 },\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 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(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\".\"ad_reporting_docs_apple_search_ads\".\"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(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\".\"ad_reporting_docs_google_ads\".\"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(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\".\"ad_reporting_docs_microsoft_ads\".\"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(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\".\"ad_reporting_docs_pinterest\".\"pinterest_ads__keyword_report\"\n\n),\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(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\".\"ad_reporting_docs_amazon_ads\".\"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": "postgres", "schema": "ad_reporting_docs_int_ad_reporting", "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": "540cec6af930e2a24dbf60c4d4114bf17e543797bc7fd909329e4be917d869a4"}, "config": {"enabled": true, "alias": null, "schema": "int_ad_reporting", "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": "int_ad_reporting", "enabled": true}, "created_at": 1722277885.8860202, "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 },\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 },\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 },\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 },\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 },\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 },\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 },\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 },\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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_google_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_microsoft_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_apple_search_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_facebook_ads\".\"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(impressions as integer) as impressions\n\n ,cast(cost as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_linkedin_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_pinterest\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_snapchat_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_tiktok_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_twitter_ads\".\"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(impressions as integer) as impressions\n\n ,cast(cost as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_amazon_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_reddit_ads\".\"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": "ad_reporting_docs_int_ad_reporting", "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": "7c78606eeac98c9cb1f523e081c71330ef2d067c6c3d4ec8a9619bf6f1bb696c"}, "config": {"enabled": true, "alias": null, "schema": "int_ad_reporting", "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": "int_ad_reporting", "enabled": true}, "created_at": 1722277885.9112792, "relation_name": null, "raw_code": "{% set enabled_packages = get_enabled_packages() %}\n{{ config(enabled=is_enabled(enabled_packages)) }}\n\nwith\n{% for package in ['twitter_ads', '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 },\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 },\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 },\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 },\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 },\n relation=ref('tiktok_ads__advertiser_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 },\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 },\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": "twitter_ads__account_report", "package": null, "version": null}, {"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": "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.twitter_ads.twitter_ads__account_report", "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.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\ntwitter_ads as (\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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_twitter_ads\".\"twitter_ads__account_report\"\n\n),\n\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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_facebook_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_google_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_microsoft_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_apple_search_ads\".\"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(impressions as integer) as impressions\n\n ,cast(cost as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_linkedin_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_pinterest\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_snapchat_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_tiktok_ads\".\"tiktok_ads__advertiser_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(impressions as integer) as impressions\n\n ,cast(cost as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_amazon_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_reddit_ads\".\"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": "ad_reporting_docs_int_ad_reporting", "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": "e174558a546f62bc92e0c9395b4c1d6c99185a3192f4978110e47338674af6c0"}, "config": {"enabled": true, "alias": null, "schema": "int_ad_reporting", "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": "int_ad_reporting", "enabled": true}, "created_at": 1722277885.927806, "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 },\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 },\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 },\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 },\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 },\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 },\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(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\".\"ad_reporting_docs_google_ads\".\"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(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\".\"ad_reporting_docs_microsoft_ads\".\"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(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\".\"ad_reporting_docs_facebook_ads\".\"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(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\".\"ad_reporting_docs_linkedin_ads\".\"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(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\".\"ad_reporting_docs_pinterest\".\"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(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\".\"ad_reporting_docs_snapchat_ads\".\"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(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\".\"ad_reporting_docs_tiktok_ads\".\"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(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\".\"ad_reporting_docs_twitter_ads\".\"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(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\".\"ad_reporting_docs_reddit_ads\".\"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": "ad_reporting_docs_int_ad_reporting", "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": "921d206e1485d8c8aba0c85cb48a00a1e6773486ef2c0fe2c5c953c650a3f60c"}, "config": {"enabled": true, "alias": null, "schema": "int_ad_reporting", "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": "int_ad_reporting", "enabled": true}, "created_at": 1722277885.954397, "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 },\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 },\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(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\".\"ad_reporting_docs_microsoft_ads\".\"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(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\".\"ad_reporting_docs_apple_search_ads\".\"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(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\".\"ad_reporting_docs_amazon_ads\".\"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": "ad_reporting_docs_int_ad_reporting", "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": "8020b2e69bd0f228a2f3c63c5e9aaa01116863ac9c1c1c89ef33f0a4df48606c"}, "config": {"enabled": true, "alias": null, "schema": "int_ad_reporting", "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": "int_ad_reporting", "enabled": true}, "created_at": 1722277885.96545, "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 },\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 },\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 },\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 },\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 },\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 },\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 },\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 },\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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_google_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_microsoft_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_apple_search_ads\".\"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(impressions as integer) as impressions\n\n ,cast(cost as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_linkedin_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_facebook_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_pinterest\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_snapchat_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_tiktok_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_twitter_ads\".\"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(impressions as integer) as impressions\n\n ,cast(cost as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_amazon_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_reddit_ads\".\"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": "ad_reporting_docs_apple_search_ads_source", "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": "apple_search_ads_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": "apple_search_ads_source", "materialized": "table", "enabled": true}, "created_at": 1722277888.049303, "relation_name": "\"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"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\".\"ad_reporting_docs_apple_search_ads_source\".\"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": "ad_reporting_docs_apple_search_ads_source", "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": "dd8c1fa5e6342d3c1fd57e3afc1448360dbafbd4fd8fc7254ce9c8def1599ca7"}, "config": {"enabled": true, "alias": null, "schema": "apple_search_ads_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}, "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": "apple_search_ads_source", "materialized": "table", "enabled": true}, "created_at": 1722277888.048817, "relation_name": "\"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"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 impressions,\n local_spend_amount as spend,\n local_spend_currency as currency,\n new_downloads,\n redownloads,\n taps\n\n {{ fivetran_utils.fill_pass_through_columns('apple_search_ads__ad_passthrough_metrics') }}\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.fivetran_utils.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\".\"ad_reporting_docs_apple_search_ads_source\".\"stg_apple_search_ads__ad_report_tmp\"\n),\n\nfields as (\n\n select\n \n cast(null as integer) as \n \n ad_group_id\n \n , \n cast(null as integer) as \n \n ad_id\n \n , \n cast(null as integer) as \n \n campaign_id\n \n , \n cast(null as date) as \n \n date\n \n , \n cast(null as integer) as \n \n impressions\n \n , \n cast(null as numeric(28,6)) as \n \n local_spend_amount\n \n , \n cast(null as TEXT) as \n \n local_spend_currency\n \n , \n cast(null as integer) as \n \n new_downloads\n \n , \n cast(null as integer) as \n \n redownloads\n \n , \n cast(null as integer) 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 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 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": "ad_reporting_docs_apple_search_ads_source", "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": "a04d0237fb49e6a3df5abfa44679c6c3b278e6c935572705c509e5111f3885da"}, "config": {"enabled": true, "alias": null, "schema": "apple_search_ads_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}, "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": "apple_search_ads_source", "materialized": "table", "enabled": true}, "created_at": 1722277888.049837, "relation_name": "\"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"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 impressions,\n local_spend_amount as spend,\n local_spend_currency as currency,\n new_downloads,\n redownloads,\n taps\n\n {{ fivetran_utils.fill_pass_through_columns('apple_search_ads__campaign_passthrough_metrics') }}\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.fivetran_utils.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\".\"ad_reporting_docs_apple_search_ads_source\".\"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 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 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 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": "ad_reporting_docs_apple_search_ads_source", "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": "apple_search_ads_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": "apple_search_ads_source", "materialized": "table", "enabled": true}, "created_at": 1722277888.0512462, "relation_name": "\"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"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\".\"ad_reporting_docs_apple_search_ads_source\".\"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": "ad_reporting_docs_apple_search_ads_source", "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": "f1616490aff7bbf2113a4cdbab1414e3285d1914f3807807762a962656686910"}, "config": {"enabled": true, "alias": null, "schema": "apple_search_ads_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}, "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": "apple_search_ads_source", "materialized": "table", "enabled": true}, "created_at": 1722277888.0508502, "relation_name": "\"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"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 impressions,\n local_spend_amount as spend,\n local_spend_currency as currency,\n new_downloads,\n redownloads,\n taps\n\n {{ fivetran_utils.fill_pass_through_columns('apple_search_ads__keyword_passthrough_metrics') }}\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.fivetran_utils.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\".\"ad_reporting_docs_apple_search_ads_source\".\"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 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 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 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": "ad_reporting_docs_apple_search_ads_source", "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": "apple_search_ads_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": "apple_search_ads_source", "materialized": "table", "enabled": true}, "created_at": 1722277888.0503669, "relation_name": "\"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"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\".\"ad_reporting_docs_apple_search_ads_source\".\"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": "ad_reporting_docs_apple_search_ads_source", "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": "4a92bee533bd7388b48209c0911b5eb7f30c7823d3580e8f185416090f34bf7f"}, "config": {"enabled": true, "alias": null, "schema": "apple_search_ads_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}, "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": "apple_search_ads_source", "materialized": "table", "enabled": true}, "created_at": 1722277888.052172, "relation_name": "\"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"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 impressions,\n taps,\n new_downloads,\n redownloads\n\n {{ fivetran_utils.fill_pass_through_columns('apple_search_ads__search_term_passthrough_metrics') }}\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.fivetran_utils.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\".\"ad_reporting_docs_apple_search_ads_source\".\"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 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 impressions,\n taps,\n new_downloads,\n redownloads\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": "ad_reporting_docs_apple_search_ads_source", "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": "apple_search_ads_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": "apple_search_ads_source", "materialized": "table", "enabled": true}, "created_at": 1722277888.0471969, "relation_name": "\"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"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\".\"ad_reporting_docs_apple_search_ads_source\".\"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": "ad_reporting_docs_apple_search_ads_source", "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": "apple_search_ads_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": "apple_search_ads_source", "materialized": "table", "enabled": true}, "created_at": 1722277888.048259, "relation_name": "\"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"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\".\"ad_reporting_docs_apple_search_ads_source\".\"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": "ad_reporting_docs_apple_search_ads_source", "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": "2c407e9c368ea095a3ba2732ca8bb1c03750409c6cfdbb9e212a6cdab647f9b4"}, "config": {"enabled": true, "alias": null, "schema": "apple_search_ads_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}, "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": "apple_search_ads_source", "materialized": "table", "enabled": true}, "created_at": 1722277888.047758, "relation_name": "\"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"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 impressions,\n local_spend_amount as spend,\n local_spend_currency as currency,\n new_downloads,\n redownloads,\n taps\n\n {{ fivetran_utils.fill_pass_through_columns('apple_search_ads__ad_group_passthrough_metrics') }}\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.fivetran_utils.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\".\"ad_reporting_docs_apple_search_ads_source\".\"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 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 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 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": "ad_reporting_docs_apple_search_ads_source", "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": "apple_search_ads_source", "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": "apple_search_ads_source", "materialized": "view", "enabled": true}, "created_at": 1722277886.079674, "relation_name": "\"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"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\".\"ad_reporting_docs\".\"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": "ad_reporting_docs_apple_search_ads_source", "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": "apple_search_ads_source", "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": "apple_search_ads_source", "materialized": "view", "enabled": true}, "created_at": 1722277886.0838568, "relation_name": "\"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"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\".\"ad_reporting_docs\".\"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": "ad_reporting_docs_apple_search_ads_source", "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": "apple_search_ads_source", "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": "apple_search_ads_source", "materialized": "view", "enabled": true}, "created_at": 1722277886.0879328, "relation_name": "\"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"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\".\"ad_reporting_docs\".\"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": "ad_reporting_docs_apple_search_ads_source", "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": "apple_search_ads_source", "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": "apple_search_ads_source", "materialized": "view", "enabled": true}, "created_at": 1722277886.0926578, "relation_name": "\"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"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\".\"ad_reporting_docs\".\"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": "ad_reporting_docs_apple_search_ads_source", "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": "apple_search_ads_source", "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": "apple_search_ads_source", "materialized": "view", "enabled": true}, "created_at": 1722277886.0967119, "relation_name": "\"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"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\".\"ad_reporting_docs\".\"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": "ad_reporting_docs_apple_search_ads_source", "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": "apple_search_ads_source", "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": "apple_search_ads_source", "materialized": "view", "enabled": true}, "created_at": 1722277886.1007402, "relation_name": "\"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"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\".\"ad_reporting_docs\".\"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": "ad_reporting_docs_apple_search_ads_source", "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": "apple_search_ads_source", "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": "apple_search_ads_source", "materialized": "view", "enabled": true}, "created_at": 1722277886.10546, "relation_name": "\"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"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\".\"ad_reporting_docs\".\"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": "ad_reporting_docs_apple_search_ads_source", "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": "apple_search_ads_source", "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": "apple_search_ads_source", "materialized": "view", "enabled": true}, "created_at": 1722277886.109518, "relation_name": "\"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"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\".\"ad_reporting_docs\".\"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": "ad_reporting_docs_apple_search_ads_source", "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": "apple_search_ads_source", "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": "apple_search_ads_source", "materialized": "view", "enabled": true}, "created_at": 1722277886.113549, "relation_name": "\"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"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\".\"ad_reporting_docs\".\"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": "ad_reporting_docs_apple_search_ads_source", "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": "apple_search_ads_source", "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": "apple_search_ads_source", "materialized": "view", "enabled": true}, "created_at": 1722277886.117558, "relation_name": "\"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"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 \n \n \n select \n cast(null as TEXT) as _dbt_source_relation\n limit 0", "extra_ctes_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": "ad_reporting_docs_pinterest_source", "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": "61715873423c0bbc53c196d84ca3f5651dfa860fa343960259ce927c9817889a"}, "config": {"enabled": true, "alias": null, "schema": "pinterest_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": "pinterest_source", "materialized": "table", "enabled": true}, "created_at": 1722277888.1083698, "relation_name": "\"postgres\".\"ad_reporting_docs_pinterest_source\".\"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 id as pin_promotion_id,\n ad_account_id as advertiser_id,\n 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 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.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\".\"ad_reporting_docs_pinterest_source\".\"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 id as pin_promotion_id,\n ad_account_id as advertiser_id,\n 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 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": "ad_reporting_docs_pinterest_source", "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": "f8795d4605624512d051f89977d608d3b84502275a6beaeb024a7802c7aeead5"}, "config": {"enabled": true, "alias": null, "schema": "pinterest_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "pinterest_source://models/stg_pinterest_ads.yml", "build_path": null, "unrendered_config": {"schema": "pinterest_source", "materialized": "table", "enabled": true}, "created_at": 1722277888.11252, "relation_name": "\"postgres\".\"ad_reporting_docs_pinterest_source\".\"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 keyword_id,\n pin_promotion_id,\n ad_group_id,\n ad_group_name,\n ad_group_status,\n campaign_id,\n 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 spend_in_micro_dollar / 1000000.0 as spend\n\n {{ fivetran_utils.fill_pass_through_columns('pinterest__keyword_report_passthrough_metrics') }}\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.fivetran_utils.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\".\"ad_reporting_docs_pinterest_source\".\"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 cast(null as integer) 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 cast(null as integer) 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 \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 keyword_id,\n pin_promotion_id,\n ad_group_id,\n ad_group_name,\n ad_group_status,\n campaign_id,\n 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 spend_in_micro_dollar / 1000000.0 as spend\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.pinterest_source.stg_pinterest_ads__ad_group_report": {"database": "postgres", "schema": "ad_reporting_docs_pinterest_source", "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": "0f5f7ff9790a59c7816e15a6162e19b713513efd7c620b6a927da2cddef27abc"}, "config": {"enabled": true, "alias": null, "schema": "pinterest_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "pinterest_source://models/stg_pinterest_ads.yml", "build_path": null, "unrendered_config": {"schema": "pinterest_source", "materialized": "table", "enabled": true}, "created_at": 1722277888.1093729, "relation_name": "\"postgres\".\"ad_reporting_docs_pinterest_source\".\"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 ad_group_id,\n ad_group_name,\n ad_group_status,\n campaign_id,\n 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 spend_in_micro_dollar / 1000000.0 as spend\n\n {{ fivetran_utils.fill_pass_through_columns('pinterest__ad_group_report_passthrough_metrics') }}\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.fivetran_utils.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\".\"ad_reporting_docs_pinterest_source\".\"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 cast(null as integer) 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 cast(null as integer) 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 \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 ad_group_id,\n ad_group_name,\n ad_group_status,\n campaign_id,\n 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 spend_in_micro_dollar / 1000000.0 as spend\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.pinterest_source.stg_pinterest_ads__campaign_history": {"database": "postgres", "schema": "ad_reporting_docs_pinterest_source", "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": "462c66b97b5084f3868d81b0f63ba6521f49e46694523210b469d0f68f16b2d0"}, "config": {"enabled": true, "alias": null, "schema": "pinterest_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": "pinterest_source", "materialized": "table", "enabled": true}, "created_at": 1722277888.1075358, "relation_name": "\"postgres\".\"ad_reporting_docs_pinterest_source\".\"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 id as campaign_id,\n name as campaign_name,\n 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"], "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\".\"ad_reporting_docs_pinterest_source\".\"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 id as campaign_id,\n name as campaign_name,\n 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": "ad_reporting_docs_pinterest_source", "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": "49f19741d64a3fc9fc151e3964c811c5727e9213c6099bfb27f45b8df99386e7"}, "config": {"enabled": true, "alias": null, "schema": "pinterest_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "pinterest_source://models/stg_pinterest_ads.yml", "build_path": null, "unrendered_config": {"schema": "pinterest_source", "materialized": "table", "enabled": true}, "created_at": 1722277888.11076, "relation_name": "\"postgres\".\"ad_reporting_docs_pinterest_source\".\"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 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 spend_in_micro_dollar / 1000000.0 as spend\n\n {{ fivetran_utils.fill_pass_through_columns('pinterest__advertiser_report_passthrough_metrics') }}\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.fivetran_utils.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\".\"ad_reporting_docs_pinterest_source\".\"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 cast(null as integer) 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 cast(null as integer) 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 \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 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 spend_in_micro_dollar / 1000000.0 as spend\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.pinterest_source.stg_pinterest_ads__advertiser_history": {"database": "postgres", "schema": "ad_reporting_docs_pinterest_source", "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": "731df1fabe19cbaeea752299f505973731a8a57c281f92699fae43f3139de445"}, "config": {"enabled": true, "alias": null, "schema": "pinterest_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": "pinterest_source", "materialized": "table", "enabled": true}, "created_at": 1722277888.110333, "relation_name": "\"postgres\".\"ad_reporting_docs_pinterest_source\".\"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 id 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"], "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\".\"ad_reporting_docs_pinterest_source\".\"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 id 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": "ad_reporting_docs_pinterest_source", "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": "dbb356c48560d73a451e9d61b51edacd1984d8582c5a7c2f355a019bddaf141a"}, "config": {"enabled": true, "alias": null, "schema": "pinterest_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "pinterest_source://models/stg_pinterest_ads.yml", "build_path": null, "unrendered_config": {"schema": "pinterest_source", "materialized": "table", "enabled": true}, "created_at": 1722277888.111243, "relation_name": "\"postgres\".\"ad_reporting_docs_pinterest_source\".\"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 campaign_id,\n campaign_name,\n campaign_status,\n 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 spend_in_micro_dollar / 1000000.0 as spend\n\n {{ fivetran_utils.fill_pass_through_columns('pinterest__campaign_report_passthrough_metrics') }}\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.fivetran_utils.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\".\"ad_reporting_docs_pinterest_source\".\"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 cast(null as integer) 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 cast(null as integer) 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 \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 campaign_id,\n campaign_name,\n campaign_status,\n 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 spend_in_micro_dollar / 1000000.0 as spend\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.pinterest_source.stg_pinterest_ads__keyword_history": {"database": "postgres", "schema": "ad_reporting_docs_pinterest_source", "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": "c17ca5238da3181d413006b4dee994aedcbd28a073b67c5d7b9ccc502ed2bec2"}, "config": {"enabled": true, "alias": null, "schema": "pinterest_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": "pinterest_source", "materialized": "table", "enabled": true}, "created_at": 1722277888.111972, "relation_name": "\"postgres\".\"ad_reporting_docs_pinterest_source\".\"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 id as keyword_id,\n value as keyword_value,\n _fivetran_id,\n _fivetran_synced,\n ad_group_id,\n advertiser_id,\n archived,\n bid,\n 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"], "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\".\"ad_reporting_docs_pinterest_source\".\"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 id as keyword_id,\n value as keyword_value,\n _fivetran_id,\n _fivetran_synced,\n ad_group_id,\n advertiser_id,\n archived,\n bid,\n 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": "ad_reporting_docs_pinterest_source", "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": "adbb1233390c228aecf3343e6a54c65bd4f61ba92d22b58a943a9fdc88f71787"}, "config": {"enabled": true, "alias": null, "schema": "pinterest_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "pinterest_source://models/stg_pinterest_ads.yml", "build_path": null, "unrendered_config": {"schema": "pinterest_source", "materialized": "table", "enabled": true}, "created_at": 1722277888.1088698, "relation_name": "\"postgres\".\"ad_reporting_docs_pinterest_source\".\"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 pin_promotion_id,\n ad_group_id,\n campaign_id,\n 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 spend_in_micro_dollar / 1000000.0 as spend\n\n {{ fivetran_utils.fill_pass_through_columns('pinterest__pin_promotion_report_passthrough_metrics') }}\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.fivetran_utils.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\".\"ad_reporting_docs_pinterest_source\".\"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 \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 pin_promotion_id,\n ad_group_id,\n campaign_id,\n 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 spend_in_micro_dollar / 1000000.0 as spend\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.pinterest_source.stg_pinterest_ads__ad_group_history": {"database": "postgres", "schema": "ad_reporting_docs_pinterest_source", "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": "96b6afda2dcc1fc8cfbc2bf8aadc44f705325e7c07eb27350157ec56cfd3dc8d"}, "config": {"enabled": true, "alias": null, "schema": "pinterest_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": "pinterest_source", "materialized": "table", "enabled": true}, "created_at": 1722277888.106387, "relation_name": "\"postgres\".\"ad_reporting_docs_pinterest_source\".\"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 id 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 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"], "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\".\"ad_reporting_docs_pinterest_source\".\"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 id 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 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": "ad_reporting_docs_pinterest_source", "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": "pinterest_source", "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": "pinterest_source", "materialized": "view", "enabled": true}, "created_at": 1722277886.265697, "relation_name": "\"postgres\".\"ad_reporting_docs_pinterest_source\".\"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\".\"ad_reporting_docs\".\"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": "ad_reporting_docs_pinterest_source", "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": "pinterest_source", "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": "pinterest_source", "materialized": "view", "enabled": true}, "created_at": 1722277886.269782, "relation_name": "\"postgres\".\"ad_reporting_docs_pinterest_source\".\"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\".\"ad_reporting_docs\".\"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": "ad_reporting_docs_pinterest_source", "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": "pinterest_source", "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": "pinterest_source", "materialized": "view", "enabled": true}, "created_at": 1722277886.273835, "relation_name": "\"postgres\".\"ad_reporting_docs_pinterest_source\".\"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\".\"ad_reporting_docs\".\"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": "ad_reporting_docs_pinterest_source", "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": "pinterest_source", "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": "pinterest_source", "materialized": "view", "enabled": true}, "created_at": 1722277886.2786171, "relation_name": "\"postgres\".\"ad_reporting_docs_pinterest_source\".\"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\".\"ad_reporting_docs\".\"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": "ad_reporting_docs_pinterest_source", "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": "pinterest_source", "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": "pinterest_source", "materialized": "view", "enabled": true}, "created_at": 1722277886.282658, "relation_name": "\"postgres\".\"ad_reporting_docs_pinterest_source\".\"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\".\"ad_reporting_docs\".\"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": "ad_reporting_docs_pinterest_source", "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": "pinterest_source", "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": "pinterest_source", "materialized": "view", "enabled": true}, "created_at": 1722277886.286787, "relation_name": "\"postgres\".\"ad_reporting_docs_pinterest_source\".\"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\".\"ad_reporting_docs\".\"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": "ad_reporting_docs_pinterest_source", "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": "pinterest_source", "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": "pinterest_source", "materialized": "view", "enabled": true}, "created_at": 1722277886.2914891, "relation_name": "\"postgres\".\"ad_reporting_docs_pinterest_source\".\"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\".\"ad_reporting_docs\".\"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": "ad_reporting_docs_pinterest_source", "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": "pinterest_source", "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": "pinterest_source", "materialized": "view", "enabled": true}, "created_at": 1722277886.295688, "relation_name": "\"postgres\".\"ad_reporting_docs_pinterest_source\".\"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\".\"ad_reporting_docs\".\"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": "ad_reporting_docs_pinterest_source", "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": "pinterest_source", "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": "pinterest_source", "materialized": "view", "enabled": true}, "created_at": 1722277886.2997272, "relation_name": "\"postgres\".\"ad_reporting_docs_pinterest_source\".\"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\".\"ad_reporting_docs\".\"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": "ad_reporting_docs_pinterest_source", "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": "pinterest_source", "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": "pinterest_source", "materialized": "view", "enabled": true}, "created_at": 1722277886.303766, "relation_name": "\"postgres\".\"ad_reporting_docs_pinterest_source\".\"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\".\"ad_reporting_docs\".\"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": "ad_reporting_docs_stg_tiktok_ads", "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": "16b447b1ccc556275104378b55f4a0eacbe9c42ce4084ca4b2edd3c078ea6c34"}, "config": {"enabled": true, "alias": null, "schema": "stg_tiktok_ads", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}, "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": []}, "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": []}, "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": []}}, "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": "stg_tiktok_ads", "enabled": true}, "created_at": 1722277888.241628, "relation_name": "\"postgres\".\"ad_reporting_docs_stg_tiktok_ads\".\"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 impressions,\n clicks,\n spend,\n reach,\n conversion,\n cost_per_conversion,\n conversion_rate,\n likes,\n comments,\n shares,\n profile_visits,\n follows,\n video_play_actions,\n video_watched_2_s,\n video_watched_6_s,\n video_views_p_25,\n video_views_p_50,\n video_views_p_75,\n average_video_play,\n average_video_play_per_user\n\n {{ fivetran_utils.fill_pass_through_columns('tiktok_ads__campaign_hourly_passthrough_metrics') }}\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.fivetran_utils.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\".\"ad_reporting_docs_stg_tiktok_ads\".\"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 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 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 impressions,\n clicks,\n spend,\n reach,\n conversion,\n cost_per_conversion,\n conversion_rate,\n likes,\n comments,\n shares,\n profile_visits,\n follows,\n video_play_actions,\n video_watched_2_s,\n video_watched_6_s,\n video_views_p_25,\n video_views_p_50,\n video_views_p_75,\n average_video_play,\n average_video_play_per_user\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": "ad_reporting_docs_stg_tiktok_ads", "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": "07a491825cd0f0884c4fcbb3482ed94e4bcc63b8f62976b92823068823edde43"}, "config": {"enabled": true, "alias": null, "schema": "stg_tiktok_ads", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}, "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": []}, "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": []}, "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": []}}, "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": "stg_tiktok_ads", "enabled": true}, "created_at": 1722277888.240723, "relation_name": "\"postgres\".\"ad_reporting_docs_stg_tiktok_ads\".\"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 impressions, \n clicks, \n spend, \n reach, \n conversion, \n cost_per_conversion, \n conversion_rate, \n likes, \n comments, \n shares, \n profile_visits,\n follows, \n video_play_actions, \n video_watched_2_s, \n video_watched_6_s, \n video_views_p_25, \n video_views_p_50,\n video_views_p_75, \n average_video_play, \n average_video_play_per_user\n\n {{ fivetran_utils.fill_pass_through_columns('tiktok_ads__ad_group_hourly_passthrough_metrics') }}\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.fivetran_utils.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\".\"ad_reporting_docs_stg_tiktok_ads\".\"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 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 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 impressions, \n clicks, \n spend, \n reach, \n conversion, \n cost_per_conversion, \n conversion_rate, \n likes, \n comments, \n shares, \n profile_visits,\n follows, \n video_play_actions, \n video_watched_2_s, \n video_watched_6_s, \n video_views_p_25, \n video_views_p_50,\n video_views_p_75, \n average_video_play, \n average_video_play_per_user\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": "ad_reporting_docs_stg_tiktok_ads", "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": "stg_tiktok_ads", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": "stg_tiktok_ads", "enabled": true}, "created_at": 1722277888.2377229, "relation_name": "\"postgres\".\"ad_reporting_docs_stg_tiktok_ads\".\"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 \"postgres\".\"ad_reporting_docs_stg_tiktok_ads\".\"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 TEXT) 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 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 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": "postgres", "schema": "ad_reporting_docs_stg_tiktok_ads", "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": "af14d4be44964072d467f3a7798ce81aa23eaa4cdd49cb5465921483fc710c47"}, "config": {"enabled": true, "alias": null, "schema": "stg_tiktok_ads", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}, "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": []}, "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": []}, "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": []}}, "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": "stg_tiktok_ads", "enabled": true}, "created_at": 1722277888.239846, "relation_name": "\"postgres\".\"ad_reporting_docs_stg_tiktok_ads\".\"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 impressions, \n clicks, \n spend, \n reach, \n conversion, \n cost_per_conversion, \n conversion_rate, \n likes, \n comments, \n shares, \n profile_visits,\n follows, \n video_play_actions, \n video_watched_2_s, \n video_watched_6_s, \n video_views_p_25, \n video_views_p_50,\n video_views_p_75, \n average_video_play, \n average_video_play_per_user\n\n {{ fivetran_utils.fill_pass_through_columns('tiktok_ads__ad_hourly_passthrough_metrics') }}\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.fivetran_utils.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\".\"ad_reporting_docs_stg_tiktok_ads\".\"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 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 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 impressions, \n clicks, \n spend, \n reach, \n conversion, \n cost_per_conversion, \n conversion_rate, \n likes, \n comments, \n shares, \n profile_visits,\n follows, \n video_play_actions, \n video_watched_2_s, \n video_watched_6_s, \n video_views_p_25, \n video_views_p_50,\n video_views_p_75, \n average_video_play, \n average_video_play_per_user\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": "ad_reporting_docs_stg_tiktok_ads", "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": "stg_tiktok_ads", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": "stg_tiktok_ads", "enabled": true}, "created_at": 1722277888.23684, "relation_name": "\"postgres\".\"ad_reporting_docs_stg_tiktok_ads\".\"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\".\"ad_reporting_docs_stg_tiktok_ads\".\"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": "ad_reporting_docs_stg_tiktok_ads", "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": "stg_tiktok_ads", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": "stg_tiktok_ads", "enabled": true}, "created_at": 1722277888.2384799, "relation_name": "\"postgres\".\"ad_reporting_docs_stg_tiktok_ads\".\"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\".\"ad_reporting_docs_stg_tiktok_ads\".\"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": "ad_reporting_docs_stg_tiktok_ads", "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": "stg_tiktok_ads", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": "stg_tiktok_ads", "enabled": true}, "created_at": 1722277888.238936, "relation_name": "\"postgres\".\"ad_reporting_docs_stg_tiktok_ads\".\"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\".\"ad_reporting_docs_stg_tiktok_ads\".\"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": "ad_reporting_docs_stg_tiktok_ads", "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": "stg_tiktok_ads", "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": "stg_tiktok_ads", "enabled": true}, "created_at": 1722277886.4008121, "relation_name": "\"postgres\".\"ad_reporting_docs_stg_tiktok_ads\".\"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\".\"ad_reporting_docs\".\"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": "ad_reporting_docs_stg_tiktok_ads", "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": "stg_tiktok_ads", "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": "stg_tiktok_ads", "enabled": true}, "created_at": 1722277886.405401, "relation_name": "\"postgres\".\"ad_reporting_docs_stg_tiktok_ads\".\"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\".\"ad_reporting_docs\".\"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": "ad_reporting_docs_stg_tiktok_ads", "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": "stg_tiktok_ads", "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": "stg_tiktok_ads", "enabled": true}, "created_at": 1722277886.409499, "relation_name": "\"postgres\".\"ad_reporting_docs_stg_tiktok_ads\".\"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\".\"ad_reporting_docs\".\"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": "ad_reporting_docs_stg_tiktok_ads", "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": "stg_tiktok_ads", "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": "stg_tiktok_ads", "enabled": true}, "created_at": 1722277886.413551, "relation_name": "\"postgres\".\"ad_reporting_docs_stg_tiktok_ads\".\"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\".\"ad_reporting_docs\".\"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": "ad_reporting_docs_stg_tiktok_ads", "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": "stg_tiktok_ads", "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": "stg_tiktok_ads", "enabled": true}, "created_at": 1722277886.4181812, "relation_name": "\"postgres\".\"ad_reporting_docs_stg_tiktok_ads\".\"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\".\"ad_reporting_docs\".\"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": "ad_reporting_docs_stg_tiktok_ads", "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": "stg_tiktok_ads", "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": "stg_tiktok_ads", "enabled": true}, "created_at": 1722277886.4222322, "relation_name": "\"postgres\".\"ad_reporting_docs_stg_tiktok_ads\".\"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\".\"ad_reporting_docs\".\"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": "ad_reporting_docs_stg_tiktok_ads", "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": "stg_tiktok_ads", "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": "stg_tiktok_ads", "enabled": true}, "created_at": 1722277886.426311, "relation_name": "\"postgres\".\"ad_reporting_docs_stg_tiktok_ads\".\"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\".\"ad_reporting_docs\".\"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": {"database": "postgres", "schema": "ad_reporting_docs_facebook_ads_source", "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": "facebook_ads_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": "facebook_ads_source", "materialized": "table", "enabled": true}, "created_at": 1722277888.2843342, "relation_name": "\"postgres\".\"ad_reporting_docs_facebook_ads_source\".\"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\".\"ad_reporting_docs_facebook_ads_source\".\"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__creative_history": {"database": "postgres", "schema": "ad_reporting_docs_facebook_ads_source", "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": "facebook_ads_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": "facebook_ads_source", "materialized": "table", "enabled": true}, "created_at": 1722277888.283798, "relation_name": "\"postgres\".\"ad_reporting_docs_facebook_ads_source\".\"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\".\"ad_reporting_docs_facebook_ads_source\".\"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": "ad_reporting_docs_facebook_ads_source", "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": "facebook_ads_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": "facebook_ads_source", "materialized": "table", "enabled": true}, "created_at": 1722277888.281195, "relation_name": "\"postgres\".\"ad_reporting_docs_facebook_ads_source\".\"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\".\"ad_reporting_docs_facebook_ads_source\".\"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": "ad_reporting_docs_facebook_ads_source", "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": "facebook_ads_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": "facebook_ads_source", "materialized": "table", "enabled": true}, "created_at": 1722277888.27876, "relation_name": "\"postgres\".\"ad_reporting_docs_facebook_ads_source\".\"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\".\"ad_reporting_docs_facebook_ads_source\".\"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": "ad_reporting_docs_facebook_ads_source", "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": "4f782fcc174e56d38de202afc7076fd981329b65d0b8ce95516d813f57619870"}, "config": {"enabled": true, "alias": null, "schema": "facebook_ads_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "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": "facebook_ads_source", "materialized": "table", "enabled": true}, "created_at": 1722277888.279265, "relation_name": "\"postgres\".\"ad_reporting_docs_facebook_ads_source\".\"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 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\".\"ad_reporting_docs_facebook_ads_source\".\"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\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 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": "ad_reporting_docs_facebook_ads_source", "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": "8e4ee521cdfa1cb13be4ddbca5763604495f8154abc71c6954932468a6bbfce4"}, "config": {"enabled": true, "alias": null, "schema": "facebook_ads_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "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": "facebook_ads_source", "materialized": "table", "enabled": true}, "created_at": 1722277888.280452, "relation_name": "\"postgres\".\"ad_reporting_docs_facebook_ads_source\".\"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 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\".\"ad_reporting_docs_facebook_ads_source\".\"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\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 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": "ad_reporting_docs_facebook_ads_source", "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": "facebook_ads_source", "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": "facebook_ads_source", "materialized": "view", "enabled": true}, "created_at": 1722277886.5327969, "relation_name": "\"postgres\".\"ad_reporting_docs_facebook_ads_source\".\"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\".\"ad_reporting_docs\".\"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": "ad_reporting_docs_facebook_ads_source", "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": "facebook_ads_source", "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": "facebook_ads_source", "materialized": "view", "enabled": true}, "created_at": 1722277886.536936, "relation_name": "\"postgres\".\"ad_reporting_docs_facebook_ads_source\".\"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\".\"ad_reporting_docs\".\"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": "ad_reporting_docs_facebook_ads_source", "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": "facebook_ads_source", "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": "facebook_ads_source", "materialized": "view", "enabled": true}, "created_at": 1722277886.541611, "relation_name": "\"postgres\".\"ad_reporting_docs_facebook_ads_source\".\"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\".\"ad_reporting_docs\".\"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": "ad_reporting_docs_facebook_ads_source", "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": "facebook_ads_source", "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": "facebook_ads_source", "materialized": "view", "enabled": true}, "created_at": 1722277886.545697, "relation_name": "\"postgres\".\"ad_reporting_docs_facebook_ads_source\".\"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\".\"ad_reporting_docs\".\"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__creative_history_tmp": {"database": "postgres", "schema": "ad_reporting_docs_facebook_ads_source", "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": "facebook_ads_source", "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": "facebook_ads_source", "materialized": "view", "enabled": true}, "created_at": 1722277886.549825, "relation_name": "\"postgres\".\"ad_reporting_docs_facebook_ads_source\".\"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\".\"ad_reporting_docs\".\"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__account_history_tmp": {"database": "postgres", "schema": "ad_reporting_docs_facebook_ads_source", "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": "facebook_ads_source", "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": "facebook_ads_source", "materialized": "view", "enabled": true}, "created_at": 1722277886.55391, "relation_name": "\"postgres\".\"ad_reporting_docs_facebook_ads_source\".\"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\".\"ad_reporting_docs\".\"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": "ad_reporting_docs_snapchat_ads_source", "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": "ce4d153720c25a4d97969cd1fee5c04592c8d865c9600d51ac3685d0e7c5669b"}, "config": {"enabled": true, "alias": null, "schema": "snapchat_ads_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "snapchat_ads_source://models/stg_snapchat.yml", "build_path": null, "unrendered_config": {"schema": "snapchat_ads_source", "materialized": "table", "enabled": true}, "created_at": 1722277888.3380742, "relation_name": "\"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"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\n {{ fivetran_utils.fill_pass_through_columns('snapchat_ads__ad_squad_hourly_passthrough_metrics') }}\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.fivetran_utils.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\".\"ad_reporting_docs_snapchat_ads_source\".\"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 \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\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": "ad_reporting_docs_snapchat_ads_source", "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": "snapchat_ads_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": "snapchat_ads_source", "materialized": "table", "enabled": true}, "created_at": 1722277888.335497, "relation_name": "\"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"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\".\"ad_reporting_docs_snapchat_ads_source\".\"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": "ad_reporting_docs_snapchat_ads_source", "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": "snapchat_ads_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": "snapchat_ads_source", "materialized": "table", "enabled": true}, "created_at": 1722277888.337312, "relation_name": "\"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"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\".\"ad_reporting_docs_snapchat_ads_source\".\"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": "ad_reporting_docs_snapchat_ads_source", "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": "6910b0c0ad16621354a5323526f2c934955373d3835b677510bd9ad9d204dbc8"}, "config": {"enabled": true, "alias": null, "schema": "snapchat_ads_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "snapchat_ads_source://models/stg_snapchat.yml", "build_path": null, "unrendered_config": {"schema": "snapchat_ads_source", "materialized": "table", "enabled": true}, "created_at": 1722277888.33684, "relation_name": "\"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"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\n {{ fivetran_utils.fill_pass_through_columns('snapchat_ads__ad_hourly_passthrough_metrics') }}\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.fivetran_utils.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\".\"ad_reporting_docs_snapchat_ads_source\".\"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 \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\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": "ad_reporting_docs_snapchat_ads_source", "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": "snapchat_ads_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": "snapchat_ads_source", "materialized": "table", "enabled": true}, "created_at": 1722277888.3399339, "relation_name": "\"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"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\".\"ad_reporting_docs_snapchat_ads_source\".\"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": "ad_reporting_docs_snapchat_ads_source", "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": "snapchat_ads_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": "snapchat_ads_source", "materialized": "table", "enabled": true}, "created_at": 1722277888.340616, "relation_name": "\"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"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\".\"ad_reporting_docs_snapchat_ads_source\".\"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": "ad_reporting_docs_snapchat_ads_source", "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": "snapchat_ads_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": "snapchat_ads_source", "materialized": "table", "enabled": true}, "created_at": 1722277888.334965, "relation_name": "\"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"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\".\"ad_reporting_docs_snapchat_ads_source\".\"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": "ad_reporting_docs_snapchat_ads_source", "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": "f5ccbf9ccd928646b0d2f64521412e2a0b65bcecba86e4daa115fcfceec6e412"}, "config": {"enabled": true, "alias": null, "schema": "snapchat_ads_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "snapchat_ads_source://models/stg_snapchat.yml", "build_path": null, "unrendered_config": {"schema": "snapchat_ads_source", "materialized": "table", "enabled": true}, "created_at": 1722277888.339253, "relation_name": "\"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"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\n {{ fivetran_utils.fill_pass_through_columns('snapchat_ads__campaign_hourly_report_passthrough_metrics') }}\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.fivetran_utils.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\".\"ad_reporting_docs_snapchat_ads_source\".\"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 \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\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": "ad_reporting_docs_snapchat_ads_source", "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": "snapchat_ads_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": "snapchat_ads_source", "materialized": "table", "enabled": true}, "created_at": 1722277888.33854, "relation_name": "\"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"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\".\"ad_reporting_docs_snapchat_ads_source\".\"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": "ad_reporting_docs_snapchat_ads_source", "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": "snapchat_ads_source", "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": "snapchat_ads_source", "materialized": "view", "enabled": true}, "created_at": 1722277886.648114, "relation_name": "\"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"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\".\"ad_reporting_docs\".\"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": "ad_reporting_docs_snapchat_ads_source", "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": "snapchat_ads_source", "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": "snapchat_ads_source", "materialized": "view", "enabled": true}, "created_at": 1722277886.65221, "relation_name": "\"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"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\".\"ad_reporting_docs\".\"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": "ad_reporting_docs_snapchat_ads_source", "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": "snapchat_ads_source", "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": "snapchat_ads_source", "materialized": "view", "enabled": true}, "created_at": 1722277886.656258, "relation_name": "\"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"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\".\"ad_reporting_docs\".\"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": "ad_reporting_docs_snapchat_ads_source", "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": "snapchat_ads_source", "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": "snapchat_ads_source", "materialized": "view", "enabled": true}, "created_at": 1722277886.660377, "relation_name": "\"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"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\".\"ad_reporting_docs\".\"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": "ad_reporting_docs_snapchat_ads_source", "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": "snapchat_ads_source", "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": "snapchat_ads_source", "materialized": "view", "enabled": true}, "created_at": 1722277886.665073, "relation_name": "\"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"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\".\"ad_reporting_docs\".\"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": "ad_reporting_docs_snapchat_ads_source", "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": "snapchat_ads_source", "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": "snapchat_ads_source", "materialized": "view", "enabled": true}, "created_at": 1722277886.669088, "relation_name": "\"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"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\".\"ad_reporting_docs\".\"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": "ad_reporting_docs_snapchat_ads_source", "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": "snapchat_ads_source", "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": "snapchat_ads_source", "materialized": "view", "enabled": true}, "created_at": 1722277886.673124, "relation_name": "\"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"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\".\"ad_reporting_docs\".\"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": "ad_reporting_docs_snapchat_ads_source", "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": "snapchat_ads_source", "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": "snapchat_ads_source", "materialized": "view", "enabled": true}, "created_at": 1722277886.67785, "relation_name": "\"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"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\".\"ad_reporting_docs\".\"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": "ad_reporting_docs_snapchat_ads_source", "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": "snapchat_ads_source", "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": "snapchat_ads_source", "materialized": "view", "enabled": true}, "created_at": 1722277886.6819289, "relation_name": "\"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"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\".\"ad_reporting_docs\".\"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": "ad_reporting_docs_microsoft_ads", "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": "307e1bce107c79c9820bc5030a61834e1a1b28334345d10fe813a6eac8f0379c"}, "config": {"enabled": true, "alias": null, "schema": "microsoft_ads", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "microsoft_ads://models/microsoft_ads.yml", "build_path": null, "unrendered_config": {"schema": "microsoft_ads", "materialized": "table", "enabled": true}, "created_at": 1722277888.392786, "relation_name": "\"postgres\".\"ad_reporting_docs_microsoft_ads\".\"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\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='microsoft_ads__ad_passthrough_metrics', transform = 'sum') }}\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.fivetran_utils.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\".\"ad_reporting_docs_microsoft_ads_source\".\"stg_microsoft_ads__ad_daily_report\"\n\n), \n\nads as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"stg_microsoft_ads__ad_history\"\n where is_most_recent_record = True\n\n), \n\nad_groups as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"stg_microsoft_ads__ad_group_history\"\n where is_most_recent_record = True\n\n), \n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"stg_microsoft_ads__campaign_history\"\n where is_most_recent_record = True\n\n), \n\naccounts as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"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\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": "ad_reporting_docs_microsoft_ads", "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": "c4511624567f98d0a3dacedcf6fbe0e1d176a720ac1303d31223dc7964b29cef"}, "config": {"enabled": true, "alias": null, "schema": "microsoft_ads", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "microsoft_ads://models/microsoft_ads.yml", "build_path": null, "unrendered_config": {"schema": "microsoft_ads", "materialized": "table", "enabled": true}, "created_at": 1722277888.3920372, "relation_name": "\"postgres\".\"ad_reporting_docs_microsoft_ads\".\"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\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='microsoft_ads__ad_group_passthrough_metrics', transform = 'sum') }}\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.fivetran_utils.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\".\"ad_reporting_docs_microsoft_ads_source\".\"stg_microsoft_ads__ad_group_daily_report\"\n\n), \n\nad_groups as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"stg_microsoft_ads__ad_group_history\"\n where is_most_recent_record = True\n),\n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"stg_microsoft_ads__campaign_history\"\n where is_most_recent_record = True\n),\n\naccounts as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"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\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": "ad_reporting_docs_microsoft_ads", "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": "bbb2ec37bcb99f5f21d93deb77f1f6050e747db88f7b916d56bb0f386182e7ee"}, "config": {"enabled": true, "alias": null, "schema": "microsoft_ads", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "microsoft_ads://models/microsoft_ads.yml", "build_path": null, "unrendered_config": {"schema": "microsoft_ads", "materialized": "table", "enabled": true}, "created_at": 1722277888.394346, "relation_name": "\"postgres\".\"ad_reporting_docs_microsoft_ads\".\"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\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='microsoft_ads__keyword_passthrough_metrics', transform = 'sum') }}\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.fivetran_utils.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\".\"ad_reporting_docs_microsoft_ads_source\".\"stg_microsoft_ads__keyword_daily_report\"\n\n), \n\nkeywords as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"stg_microsoft_ads__keyword_history\"\n where is_most_recent_record = True\n),\n\nads as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"stg_microsoft_ads__ad_history\"\n where is_most_recent_record = True\n\n), \n\nad_groups as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"stg_microsoft_ads__ad_group_history\"\n where is_most_recent_record = True\n\n), \n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"stg_microsoft_ads__campaign_history\"\n where is_most_recent_record = True\n\n), \n\naccounts as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"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\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": "ad_reporting_docs_microsoft_ads", "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": "0a448a3a7cd964c8e08f12b791ee61c8fc2b19ef99f67568c81a905c4adb3f08"}, "config": {"enabled": true, "alias": null, "schema": "microsoft_ads", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "microsoft_ads://models/microsoft_ads.yml", "build_path": null, "unrendered_config": {"schema": "microsoft_ads", "materialized": "table", "enabled": true}, "created_at": 1722277888.395902, "relation_name": "\"postgres\".\"ad_reporting_docs_microsoft_ads\".\"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\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='microsoft_ads__ad_passthrough_metrics', transform = 'sum') }}\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.fivetran_utils.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\".\"ad_reporting_docs_microsoft_ads_source\".\"stg_microsoft_ads__ad_daily_report\"\n\n), \n\nads as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"stg_microsoft_ads__ad_history\"\n where is_most_recent_record = True\n\n), \n\nad_groups as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"stg_microsoft_ads__ad_group_history\"\n where is_most_recent_record = True\n\n), \n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"stg_microsoft_ads__campaign_history\"\n where is_most_recent_record = True\n\n), \n\naccounts as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"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\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": "ad_reporting_docs_microsoft_ads", "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": "abc820b727ed7c5676ac81a5311bdc26b981c9682fe00b9a8516bd8826829e23"}, "config": {"enabled": true, "alias": null, "schema": "microsoft_ads", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "microsoft_ads://models/microsoft_ads.yml", "build_path": null, "unrendered_config": {"schema": "microsoft_ads", "materialized": "table", "enabled": true}, "created_at": 1722277888.3913758, "relation_name": "\"postgres\".\"ad_reporting_docs_microsoft_ads\".\"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\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='microsoft_ads__account_passthrough_metrics', transform = 'sum') }}\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.fivetran_utils.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\".\"ad_reporting_docs_microsoft_ads_source\".\"stg_microsoft_ads__account_daily_report\"\n\n), \n\naccounts as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"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\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": "ad_reporting_docs_microsoft_ads", "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": "07ed3c022dce76f4b3a3b06672b627a0fff5c9e3354c21b3560c28aafb5a702f"}, "config": {"enabled": true, "alias": null, "schema": "microsoft_ads", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "microsoft_ads://models/microsoft_ads.yml", "build_path": null, "unrendered_config": {"schema": "microsoft_ads", "materialized": "table", "enabled": true}, "created_at": 1722277888.395092, "relation_name": "\"postgres\".\"ad_reporting_docs_microsoft_ads\".\"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\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='microsoft_ads__search_passthrough_metrics', transform = 'sum') }}\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.fivetran_utils.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\".\"ad_reporting_docs_microsoft_ads_source\".\"stg_microsoft_ads__search_daily_report\"\n\n), \n\nkeywords as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"stg_microsoft_ads__keyword_history\"\n where is_most_recent_record = True\n),\n\nads as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"stg_microsoft_ads__ad_history\"\n where is_most_recent_record = True\n\n), \n\nad_groups as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"stg_microsoft_ads__ad_group_history\"\n where is_most_recent_record = True\n\n), \n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"stg_microsoft_ads__campaign_history\"\n where is_most_recent_record = True\n\n), \n\naccounts as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"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\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": "ad_reporting_docs_microsoft_ads", "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": "d704b22a72320743b012329ab7a73ba459d2c932ff32d5f63ddfcd091d207d7b"}, "config": {"enabled": true, "alias": null, "schema": "microsoft_ads", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "microsoft_ads://models/microsoft_ads.yml", "build_path": null, "unrendered_config": {"schema": "microsoft_ads", "materialized": "table", "enabled": true}, "created_at": 1722277888.393613, "relation_name": "\"postgres\".\"ad_reporting_docs_microsoft_ads\".\"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\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='microsoft_ads__campaign_passthrough_metrics', transform = 'sum') }}\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.fivetran_utils.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\".\"ad_reporting_docs_microsoft_ads_source\".\"stg_microsoft_ads__campaign_daily_report\"\n\n), \n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"stg_microsoft_ads__campaign_history\"\n where is_most_recent_record = True\n),\n\naccounts as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"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\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": "postgres", "schema": "ad_reporting_docs_twitter_ads_source", "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": "f6361053ee7e57c9cbfe93579649960043724da9b46e68bd8f14deeee6b43b9f"}, "config": {"enabled": true, "alias": null, "schema": "twitter_ads_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "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": "twitter_ads_source", "enabled": true}, "created_at": 1722277888.446767, "relation_name": "\"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"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 {{ fivetran_utils.fill_pass_through_columns('twitter_ads__campaign_report_passthrough_metrics') }}\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.fivetran_utils.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\".\"ad_reporting_docs_twitter_ads_source\".\"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 \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\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": "ad_reporting_docs_twitter_ads_source", "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": "twitter_ads_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": "twitter_ads_source", "enabled": true}, "created_at": 1722277888.444567, "relation_name": "\"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"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\".\"ad_reporting_docs_twitter_ads_source\".\"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": "ad_reporting_docs_twitter_ads_source", "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": "0ad901a1cb8eab6d6d0e73ef9d8c90747262fd15f30f6f3e3663cf021b1c98f4"}, "config": {"enabled": true, "alias": null, "schema": "twitter_ads_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "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": "twitter_ads_source", "enabled": true}, "created_at": 1722277888.4472919, "relation_name": "\"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"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 {{ fivetran_utils.fill_pass_through_columns('twitter_ads__line_item_report_passthrough_metrics') }}\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.fivetran_utils.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\".\"ad_reporting_docs_twitter_ads_source\".\"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 \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\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": "ad_reporting_docs_twitter_ads_source", "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": "twitter_ads_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": "twitter_ads_source", "enabled": true}, "created_at": 1722277888.443627, "relation_name": "\"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"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\".\"ad_reporting_docs_twitter_ads_source\".\"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": "ad_reporting_docs_twitter_ads_source", "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": "7c0c93ae221a2f154c0918ac2e473b9e890531db987d175b3f0deb29a6e25384"}, "config": {"enabled": true, "alias": null, "schema": "twitter_ads_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "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": "twitter_ads_source", "enabled": true}, "created_at": 1722277888.445599, "relation_name": "\"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"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 {{ fivetran_utils.fill_pass_through_columns('twitter_ads__promoted_tweet_report_passthrough_metrics') }}\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.fivetran_utils.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\".\"ad_reporting_docs_twitter_ads_source\".\"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\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\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": "ad_reporting_docs_twitter_ads_source", "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": "twitter_ads_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": "twitter_ads_source", "enabled": true}, "created_at": 1722277888.4483352, "relation_name": "\"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"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\".\"ad_reporting_docs_twitter_ads_source\".\"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": "ad_reporting_docs_twitter_ads_source", "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": "twitter_ads_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": "twitter_ads_source", "enabled": true}, "created_at": 1722277888.4428859, "relation_name": "\"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"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\".\"ad_reporting_docs_twitter_ads_source\".\"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": "ad_reporting_docs_twitter_ads_source", "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": "twitter_ads_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": "twitter_ads_source", "enabled": true}, "created_at": 1722277888.446243, "relation_name": "\"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"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\".\"ad_reporting_docs_twitter_ads_source\".\"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": "ad_reporting_docs_twitter_ads_source", "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": "twitter_ads_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": "twitter_ads_source", "enabled": true}, "created_at": 1722277888.445066, "relation_name": "\"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"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\".\"ad_reporting_docs_twitter_ads_source\".\"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": "ad_reporting_docs_twitter_ads_source", "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": "twitter_ads_source", "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": "twitter_ads_source", "enabled": true}, "created_at": 1722277886.880286, "relation_name": "\"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"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\".\"ad_reporting_docs\".\"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": "ad_reporting_docs_twitter_ads_source", "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": "twitter_ads_source", "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": "twitter_ads_source", "enabled": true}, "created_at": 1722277886.884355, "relation_name": "\"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"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\".\"ad_reporting_docs\".\"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": "ad_reporting_docs_twitter_ads_source", "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": "twitter_ads_source", "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": "twitter_ads_source", "enabled": true}, "created_at": 1722277886.888936, "relation_name": "\"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"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\".\"ad_reporting_docs\".\"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": "ad_reporting_docs_twitter_ads_source", "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": "twitter_ads_source", "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": "twitter_ads_source", "enabled": true}, "created_at": 1722277886.89296, "relation_name": "\"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"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\".\"ad_reporting_docs\".\"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": "ad_reporting_docs_twitter_ads_source", "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": "twitter_ads_source", "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": "twitter_ads_source", "enabled": true}, "created_at": 1722277886.897058, "relation_name": "\"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"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\".\"ad_reporting_docs\".\"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": "ad_reporting_docs_twitter_ads_source", "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": "twitter_ads_source", "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": "twitter_ads_source", "enabled": true}, "created_at": 1722277886.901085, "relation_name": "\"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"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\".\"ad_reporting_docs\".\"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": "postgres", "schema": "ad_reporting_docs_twitter_ads_source", "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": "twitter_ads_source", "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": "twitter_ads_source", "enabled": true}, "created_at": 1722277886.9099772, "relation_name": "\"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"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\".\"ad_reporting_docs\".\"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": "ad_reporting_docs_twitter_ads_source", "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": "twitter_ads_source", "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": "twitter_ads_source", "enabled": true}, "created_at": 1722277886.914068, "relation_name": "\"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"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\".\"ad_reporting_docs\".\"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": "ad_reporting_docs_twitter_ads_source", "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": "twitter_ads_source", "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": "twitter_ads_source", "enabled": true}, "created_at": 1722277886.9181051, "relation_name": "\"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"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\".\"ad_reporting_docs\".\"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": "ad_reporting_docs_linkedin_ads", "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": "275c64d11ee76ec7b7126f38316cb11587618859c5621f37337389c87751b0e5"}, "config": {"enabled": true, "alias": null, "schema": "linkedin_ads", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": "linkedin_ads", "enabled": true}, "created_at": 1722277888.54889, "relation_name": "\"postgres\".\"ad_reporting_docs_linkedin_ads\".\"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 {{ fivetran_utils.persist_pass_through_columns('linkedin_ads__campaign_passthrough_metrics', transform='sum') }}\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.fivetran_utils.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\".\"ad_reporting_docs_linkedin_ads_source\".\"stg_linkedin_ads__campaign_group_history\"\n where is_latest_version\n),\n\ncampaign as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_linkedin_ads_source\".\"stg_linkedin_ads__campaign_history\"\n where is_latest_version\n),\n\naccount as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_linkedin_ads_source\".\"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\".\"ad_reporting_docs_linkedin_ads_source\".\"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 , sum(coalesce(external_website_conversions, 0)) as external_website_conversions\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 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": "ad_reporting_docs_linkedin_ads", "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": "ba5862f4e6d4852be966e10ae44916b470814d7d18f2ad57e77cca005a8ab918"}, "config": {"enabled": true, "alias": null, "schema": "linkedin_ads", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": "linkedin_ads", "enabled": true}, "created_at": 1722277888.549868, "relation_name": "\"postgres\".\"ad_reporting_docs_linkedin_ads\".\"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 {{ fivetran_utils.persist_pass_through_columns('linkedin_ads__creative_passthrough_metrics', transform='sum') }}\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.fivetran_utils.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\".\"ad_reporting_docs_linkedin_ads_source\".\"stg_linkedin_ads__creative_history\"\n where is_latest_version\n),\n\ncampaign as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_linkedin_ads_source\".\"stg_linkedin_ads__campaign_history\"\n where is_latest_version\n),\n\ncampaign_group as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_linkedin_ads_source\".\"stg_linkedin_ads__campaign_group_history\"\n where is_latest_version\n),\n\naccount as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_linkedin_ads_source\".\"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\".\"ad_reporting_docs_linkedin_ads_source\".\"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 , sum(coalesce(external_website_conversions, 0)) as external_website_conversions\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 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": "postgres", "schema": "ad_reporting_docs_linkedin_ads", "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": "0b14d73f330a966c3603f038568b7672cf7fe35985712d5384c5c47ac219c908"}, "config": {"enabled": true, "alias": null, "schema": "linkedin_ads", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": "linkedin_ads", "enabled": true}, "created_at": 1722277888.548149, "relation_name": "\"postgres\".\"ad_reporting_docs_linkedin_ads\".\"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 {{ fivetran_utils.persist_pass_through_columns('linkedin_ads__campaign_passthrough_metrics', transform='sum') }}\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.fivetran_utils.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\".\"ad_reporting_docs_linkedin_ads_source\".\"stg_linkedin_ads__campaign_history\"\n where is_latest_version\n),\n\ncampaign_group as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_linkedin_ads_source\".\"stg_linkedin_ads__campaign_group_history\"\n where is_latest_version\n),\n\naccount as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_linkedin_ads_source\".\"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\".\"ad_reporting_docs_linkedin_ads_source\".\"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 , sum(coalesce(external_website_conversions, 0)) as external_website_conversions\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 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": "ad_reporting_docs_linkedin_ads", "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": "c9f9fa8774390898c4aa476ff247906fbd7d5a671f909aa9198bc112ae6dd27b"}, "config": {"enabled": true, "alias": null, "schema": "linkedin_ads", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": "linkedin_ads", "enabled": true}, "created_at": 1722277888.546864, "relation_name": "\"postgres\".\"ad_reporting_docs_linkedin_ads\".\"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 {{ fivetran_utils.persist_pass_through_columns('linkedin_ads__campaign_passthrough_metrics', transform='sum') }}\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 {{ 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.fivetran_utils.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\".\"ad_reporting_docs_linkedin_ads_source\".\"stg_linkedin_ads__account_history\"\n where is_latest_version\n),\n\ncampaign as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_linkedin_ads_source\".\"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\".\"ad_reporting_docs_linkedin_ads_source\".\"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 , sum(coalesce(external_website_conversions, 0)) as external_website_conversions\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 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": "ad_reporting_docs_linkedin_ads", "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": "aa9bf43fbb2cc36670723a91cb62bdcdc70191dc08341f5b7ba67824516f4fd9"}, "config": {"enabled": true, "alias": null, "schema": "linkedin_ads", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": "linkedin_ads", "enabled": true}, "created_at": 1722277888.5507998, "relation_name": "\"postgres\".\"ad_reporting_docs_linkedin_ads\".\"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 {{ fivetran_utils.persist_pass_through_columns('linkedin_ads__creative_passthrough_metrics', transform='sum') }}\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.fivetran_utils.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\".\"ad_reporting_docs_linkedin_ads_source\".\"stg_linkedin_ads__creative_history\"\n where is_latest_version\n),\n\ncampaign as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_linkedin_ads_source\".\"stg_linkedin_ads__campaign_history\"\n where is_latest_version\n),\n\ncampaign_group as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_linkedin_ads_source\".\"stg_linkedin_ads__campaign_group_history\"\n where is_latest_version\n),\n\naccount as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_linkedin_ads_source\".\"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\".\"ad_reporting_docs_linkedin_ads_source\".\"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 , sum(coalesce(external_website_conversions, 0)) as external_website_conversions\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 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": "postgres", "schema": "ad_reporting_docs_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": 1722277887.150485, "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\".\"ad_reporting_docs_microsoft_ads_source\".\"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": "ad_reporting_docs_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": 1722277887.1516569, "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\".\"ad_reporting_docs_microsoft_ads_source\".\"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": "ad_reporting_docs_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": 1722277887.163645, "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\".\"ad_reporting_docs_microsoft_ads_source\".\"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": "ad_reporting_docs_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": 1722277887.1646469, "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\".\"ad_reporting_docs_microsoft_ads_source\".\"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": "ad_reporting_docs_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": 1722277887.167059, "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\".\"ad_reporting_docs_microsoft_ads_source\".\"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": "ad_reporting_docs_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": 1722277887.168052, "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\".\"ad_reporting_docs_microsoft_ads_source\".\"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": "ad_reporting_docs_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": 1722277887.1704278, "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\".\"ad_reporting_docs_microsoft_ads_source\".\"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": "ad_reporting_docs_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": 1722277887.171432, "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\".\"ad_reporting_docs_microsoft_ads_source\".\"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": "ad_reporting_docs_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": 1722277887.173812, "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\".\"ad_reporting_docs_microsoft_ads_source\".\"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": "ad_reporting_docs_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": 1722277887.1747992, "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\".\"ad_reporting_docs_microsoft_ads_source\".\"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": "ad_reporting_docs_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": 1722277887.1771588, "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\".\"ad_reporting_docs_microsoft_ads_source\".\"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": "ad_reporting_docs_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": 1722277887.178161, "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\".\"ad_reporting_docs_microsoft_ads_source\".\"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": "ad_reporting_docs_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": 1722277887.180521, "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\".\"ad_reporting_docs_microsoft_ads_source\".\"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": "ad_reporting_docs_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": 1722277887.1815119, "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\".\"ad_reporting_docs_microsoft_ads_source\".\"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": "ad_reporting_docs_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": 1722277887.183871, "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\".\"ad_reporting_docs_microsoft_ads_source\".\"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": "ad_reporting_docs_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": 1722277887.184893, "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\".\"ad_reporting_docs_microsoft_ads_source\".\"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": "ad_reporting_docs_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": 1722277887.187823, "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\".\"ad_reporting_docs_microsoft_ads_source\".\"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": "ad_reporting_docs_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": 1722277887.188823, "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\".\"ad_reporting_docs_microsoft_ads_source\".\"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": "ad_reporting_docs_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": 1722277887.191191, "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\".\"ad_reporting_docs_microsoft_ads_source\".\"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": "ad_reporting_docs_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": 1722277887.1921961, "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\".\"ad_reporting_docs_microsoft_ads_source\".\"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": "ad_reporting_docs_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": 1722277887.1945689, "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\".\"ad_reporting_docs_microsoft_ads_source\".\"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": "ad_reporting_docs_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": 1722277887.19557, "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\".\"ad_reporting_docs_microsoft_ads_source\".\"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": "ad_reporting_docs_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": 1722277887.2168698, "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\".\"ad_reporting_docs_tiktok_ads\".\"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": "ad_reporting_docs_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": 1722277887.2179189, "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\".\"ad_reporting_docs_tiktok_ads\".\"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": "ad_reporting_docs_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": 1722277887.218904, "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\".\"ad_reporting_docs_tiktok_ads\".\"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": "ad_reporting_docs_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": 1722277887.2212968, "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\".\"ad_reporting_docs_tiktok_ads\".\"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": "ad_reporting_docs_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": 1722277887.22227, "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\".\"ad_reporting_docs_tiktok_ads\".\"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": "ad_reporting_docs_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": 1722277887.223253, "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\".\"ad_reporting_docs_tiktok_ads\".\"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": "ad_reporting_docs_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": 1722277887.225606, "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\".\"ad_reporting_docs_tiktok_ads\".\"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": "ad_reporting_docs_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": 1722277887.226579, "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\".\"ad_reporting_docs_tiktok_ads\".\"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": "ad_reporting_docs_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": 1722277887.227555, "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\".\"ad_reporting_docs_tiktok_ads\".\"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": "ad_reporting_docs_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": 1722277887.22993, "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\".\"ad_reporting_docs_tiktok_ads\".\"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": "ad_reporting_docs_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": 1722277887.230912, "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\".\"ad_reporting_docs_tiktok_ads\".\"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": "ad_reporting_docs_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": 1722277887.2318878, "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\".\"ad_reporting_docs_tiktok_ads\".\"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": "ad_reporting_docs_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": 1722277887.234229, "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\".\"ad_reporting_docs_tiktok_ads\".\"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": "ad_reporting_docs_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": 1722277887.235202, "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\".\"ad_reporting_docs_tiktok_ads\".\"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": "ad_reporting_docs_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": 1722277887.2365649, "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\".\"ad_reporting_docs_tiktok_ads\".\"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": "ad_reporting_docs_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": 1722277887.2378838, "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\".\"ad_reporting_docs_tiktok_ads\".\"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": "ad_reporting_docs_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": 1722277887.2614138, "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\".\"ad_reporting_docs_twitter_ads\".\"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": "ad_reporting_docs_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": 1722277887.262418, "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\".\"ad_reporting_docs_twitter_ads\".\"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": "ad_reporting_docs_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": 1722277887.2634292, "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\".\"ad_reporting_docs_twitter_ads\".\"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": "ad_reporting_docs_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": 1722277887.2644072, "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\".\"ad_reporting_docs_twitter_ads\".\"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": "ad_reporting_docs_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": 1722277887.2668002, "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\".\"ad_reporting_docs_twitter_ads\".\"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": "ad_reporting_docs_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": 1722277887.2677681, "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\".\"ad_reporting_docs_twitter_ads\".\"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": "ad_reporting_docs_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": 1722277887.268733, "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\".\"ad_reporting_docs_twitter_ads\".\"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": "ad_reporting_docs_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": 1722277887.269707, "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\".\"ad_reporting_docs_twitter_ads\".\"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": "ad_reporting_docs_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": 1722277887.272065, "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\".\"ad_reporting_docs_twitter_ads\".\"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": "ad_reporting_docs_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": 1722277887.2730272, "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\".\"ad_reporting_docs_twitter_ads\".\"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": "ad_reporting_docs_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": 1722277887.273993, "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\".\"ad_reporting_docs_twitter_ads\".\"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": "ad_reporting_docs_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": 1722277887.2750258, "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\".\"ad_reporting_docs_twitter_ads\".\"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": "ad_reporting_docs_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": 1722277887.277299, "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": "postgres", "schema": "ad_reporting_docs_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": 1722277887.278363, "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": "postgres", "schema": "ad_reporting_docs_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": 1722277887.279351, "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": "postgres", "schema": "ad_reporting_docs_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": 1722277887.28162, "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\".\"ad_reporting_docs_twitter_ads\".\"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": "ad_reporting_docs_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": 1722277887.282676, "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\".\"ad_reporting_docs_twitter_ads\".\"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": "ad_reporting_docs_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": 1722277887.283648, "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\".\"ad_reporting_docs_twitter_ads\".\"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": "ad_reporting_docs_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": 1722277887.286145, "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\".\"ad_reporting_docs_twitter_ads\".\"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": "ad_reporting_docs_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": 1722277887.287113, "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\".\"ad_reporting_docs_twitter_ads\".\"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": "ad_reporting_docs_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": 1722277887.288074, "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\".\"ad_reporting_docs_twitter_ads\".\"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": "ad_reporting_docs_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": 1722277887.2893682, "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\".\"ad_reporting_docs_twitter_ads\".\"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": "ad_reporting_docs_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": 1722277887.290737, "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\".\"ad_reporting_docs_twitter_ads\".\"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": "ad_reporting_docs_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": 1722277887.30607, "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\".\"ad_reporting_docs_reddit_ads\".\"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": "ad_reporting_docs_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": 1722277887.307072, "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\".\"ad_reporting_docs_reddit_ads\".\"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": "ad_reporting_docs_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": 1722277887.308063, "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\".\"ad_reporting_docs_reddit_ads\".\"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": "ad_reporting_docs_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": 1722277887.310428, "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\".\"ad_reporting_docs_reddit_ads\".\"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": "ad_reporting_docs_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": 1722277887.311414, "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\".\"ad_reporting_docs_reddit_ads\".\"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": "ad_reporting_docs_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": 1722277887.312395, "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\".\"ad_reporting_docs_reddit_ads\".\"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": "ad_reporting_docs_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": 1722277887.314722, "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\".\"ad_reporting_docs_reddit_ads\".\"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": "ad_reporting_docs_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": 1722277887.3156888, "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\".\"ad_reporting_docs_reddit_ads\".\"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": "ad_reporting_docs_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": 1722277887.316671, "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\".\"ad_reporting_docs_reddit_ads\".\"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": "ad_reporting_docs_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": 1722277887.3190222, "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\".\"ad_reporting_docs_reddit_ads\".\"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": "ad_reporting_docs_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": 1722277887.3199859, "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\".\"ad_reporting_docs_reddit_ads\".\"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": "ad_reporting_docs_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": 1722277887.3213508, "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\".\"ad_reporting_docs_reddit_ads\".\"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": "ad_reporting_docs_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": 1722277887.323614, "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\".\"ad_reporting_docs_reddit_ads\".\"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": "ad_reporting_docs_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": 1722277887.3245802, "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\".\"ad_reporting_docs_reddit_ads\".\"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": "ad_reporting_docs_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": 1722277887.325948, "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\".\"ad_reporting_docs_reddit_ads\".\"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": "ad_reporting_docs_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": 1722277887.3269482, "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\".\"ad_reporting_docs_reddit_ads\".\"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": "ad_reporting_docs_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": 1722277887.381957, "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\".\"ad_reporting_docs_pinterest\".\"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": "ad_reporting_docs_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": 1722277887.383378, "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\".\"ad_reporting_docs_pinterest\".\"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": "ad_reporting_docs_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": 1722277887.384387, "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\".\"ad_reporting_docs_pinterest\".\"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": "ad_reporting_docs_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": 1722277887.385754, "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\".\"ad_reporting_docs_pinterest\".\"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": "ad_reporting_docs_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": 1722277887.3881469, "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\".\"ad_reporting_docs_pinterest\".\"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": "ad_reporting_docs_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": 1722277887.389204, "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\".\"ad_reporting_docs_pinterest\".\"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": "ad_reporting_docs_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": 1722277887.390195, "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\".\"ad_reporting_docs_pinterest\".\"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": "ad_reporting_docs_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": 1722277887.392475, "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\".\"ad_reporting_docs_pinterest\".\"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": "ad_reporting_docs_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": 1722277887.393846, "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\".\"ad_reporting_docs_pinterest\".\"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": "ad_reporting_docs_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": 1722277887.394828, "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\".\"ad_reporting_docs_pinterest\".\"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": "ad_reporting_docs_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": 1722277887.397177, "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\".\"ad_reporting_docs_pinterest\".\"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": "ad_reporting_docs_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": 1722277887.398145, "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\".\"ad_reporting_docs_pinterest\".\"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": "ad_reporting_docs_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": 1722277887.399124, "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\".\"ad_reporting_docs_pinterest\".\"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": "ad_reporting_docs_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": 1722277887.401459, "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\".\"ad_reporting_docs_pinterest\".\"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": "ad_reporting_docs_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": 1722277887.40243, "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\".\"ad_reporting_docs_pinterest\".\"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": "ad_reporting_docs_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": 1722277887.403404, "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\".\"ad_reporting_docs_pinterest\".\"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": "ad_reporting_docs_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": 1722277887.405748, "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\".\"ad_reporting_docs_pinterest\".\"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": "ad_reporting_docs_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": 1722277887.4067268, "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\".\"ad_reporting_docs_pinterest\".\"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": "ad_reporting_docs_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": 1722277887.4077, "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\".\"ad_reporting_docs_pinterest\".\"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": "ad_reporting_docs_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": 1722277887.435735, "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\".\"ad_reporting_docs_reddit_ads_source\".\"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": "ad_reporting_docs_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": 1722277887.436759, "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\".\"ad_reporting_docs_reddit_ads_source\".\"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": "ad_reporting_docs_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": 1722277887.439123, "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\".\"ad_reporting_docs_reddit_ads_source\".\"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": "ad_reporting_docs_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": 1722277887.4401212, "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\".\"ad_reporting_docs_reddit_ads_source\".\"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": "ad_reporting_docs_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": 1722277887.4424782, "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\".\"ad_reporting_docs_reddit_ads_source\".\"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": "ad_reporting_docs_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": 1722277887.443462, "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\".\"ad_reporting_docs_reddit_ads_source\".\"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": "ad_reporting_docs_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": 1722277887.4458072, "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\".\"ad_reporting_docs_reddit_ads_source\".\"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": "ad_reporting_docs_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": 1722277887.446799, "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\".\"ad_reporting_docs_reddit_ads_source\".\"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": "ad_reporting_docs_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": 1722277887.449142, "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\".\"ad_reporting_docs_reddit_ads_source\".\"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": "ad_reporting_docs_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": 1722277887.450133, "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\".\"ad_reporting_docs_reddit_ads_source\".\"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": "ad_reporting_docs_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": 1722277887.452474, "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\".\"ad_reporting_docs_reddit_ads_source\".\"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": "ad_reporting_docs_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": 1722277887.453453, "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\".\"ad_reporting_docs_reddit_ads_source\".\"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": "ad_reporting_docs_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": 1722277887.455807, "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\".\"ad_reporting_docs_reddit_ads_source\".\"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": "ad_reporting_docs_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": 1722277887.4567869, "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\".\"ad_reporting_docs_reddit_ads_source\".\"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": "ad_reporting_docs_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": 1722277887.45913, "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\".\"ad_reporting_docs_reddit_ads_source\".\"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": "ad_reporting_docs_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": 1722277887.460122, "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\".\"ad_reporting_docs_reddit_ads_source\".\"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.google_ads.not_null_google_ads__url_report_base_url.e3578c0f72": {"database": "postgres", "schema": "ad_reporting_docs_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": 1722277887.478315, "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\".\"ad_reporting_docs_google_ads\".\"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": "ad_reporting_docs_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": 1722277887.479664, "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\".\"ad_reporting_docs_google_ads\".\"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": "ad_reporting_docs_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": 1722277887.48211, "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\".\"ad_reporting_docs_google_ads\".\"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": "ad_reporting_docs_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": 1722277887.483161, "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\".\"ad_reporting_docs_google_ads\".\"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": "ad_reporting_docs_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": 1722277887.4856791, "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\".\"ad_reporting_docs_google_ads\".\"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": "ad_reporting_docs_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": 1722277887.486665, "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\".\"ad_reporting_docs_google_ads\".\"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": "ad_reporting_docs_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": 1722277887.489076, "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\".\"ad_reporting_docs_google_ads\".\"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": "ad_reporting_docs_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": 1722277887.4900658, "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\".\"ad_reporting_docs_google_ads\".\"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": "ad_reporting_docs_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": 1722277887.492415, "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\".\"ad_reporting_docs_google_ads\".\"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": "ad_reporting_docs_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": 1722277887.4934, "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\".\"ad_reporting_docs_google_ads\".\"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": "ad_reporting_docs_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": 1722277887.496114, "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\".\"ad_reporting_docs_google_ads\".\"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": "ad_reporting_docs_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": 1722277887.49709, "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\".\"ad_reporting_docs_google_ads\".\"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": "ad_reporting_docs_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": 1722277887.521471, "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\".\"ad_reporting_docs_amazon_ads_source\".\"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": "ad_reporting_docs_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": 1722277887.522867, "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\".\"ad_reporting_docs_amazon_ads_source\".\"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": "ad_reporting_docs_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": 1722277887.5252538, "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\".\"ad_reporting_docs_amazon_ads_source\".\"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": "ad_reporting_docs_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": 1722277887.526316, "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\".\"ad_reporting_docs_amazon_ads_source\".\"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": "ad_reporting_docs_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": 1722277887.5285819, "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\".\"ad_reporting_docs_amazon_ads_source\".\"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": "ad_reporting_docs_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": 1722277887.529558, "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\".\"ad_reporting_docs_amazon_ads_source\".\"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": "ad_reporting_docs_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": 1722277887.531887, "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\".\"ad_reporting_docs_amazon_ads_source\".\"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": "ad_reporting_docs_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": 1722277887.532871, "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\".\"ad_reporting_docs_amazon_ads_source\".\"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": "ad_reporting_docs_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": 1722277887.5352268, "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\".\"ad_reporting_docs_amazon_ads_source\".\"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": "ad_reporting_docs_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": 1722277887.536215, "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\".\"ad_reporting_docs_amazon_ads_source\".\"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": "ad_reporting_docs_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": 1722277887.538547, "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\".\"ad_reporting_docs_amazon_ads_source\".\"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": "ad_reporting_docs_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": 1722277887.539537, "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\".\"ad_reporting_docs_amazon_ads_source\".\"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": "ad_reporting_docs_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": 1722277887.541887, "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\".\"ad_reporting_docs_amazon_ads_source\".\"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": "ad_reporting_docs_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": 1722277887.5428631, "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\".\"ad_reporting_docs_amazon_ads_source\".\"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": "ad_reporting_docs_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": 1722277887.545195, "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\".\"ad_reporting_docs_amazon_ads_source\".\"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": "ad_reporting_docs_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": 1722277887.5461729, "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\".\"ad_reporting_docs_amazon_ads_source\".\"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": "ad_reporting_docs_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": 1722277887.548507, "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\".\"ad_reporting_docs_amazon_ads_source\".\"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": "ad_reporting_docs_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": 1722277887.5494888, "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\".\"ad_reporting_docs_amazon_ads_source\".\"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": "ad_reporting_docs_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": 1722277887.550464, "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\".\"ad_reporting_docs_amazon_ads_source\".\"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": "ad_reporting_docs_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": 1722277887.55279, "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\".\"ad_reporting_docs_amazon_ads_source\".\"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": "ad_reporting_docs_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": 1722277887.5537899, "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\".\"ad_reporting_docs_amazon_ads_source\".\"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": "ad_reporting_docs_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": 1722277887.582535, "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\".\"ad_reporting_docs_linkedin_ads_source\".\"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": "ad_reporting_docs_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": 1722277887.5835562, "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\".\"ad_reporting_docs_linkedin_ads_source\".\"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": "ad_reporting_docs_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": 1722277887.5846, "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\".\"ad_reporting_docs_linkedin_ads_source\".\"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": "ad_reporting_docs_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": 1722277887.586941, "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\".\"ad_reporting_docs_linkedin_ads_source\".\"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": "ad_reporting_docs_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": 1722277887.5879948, "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\".\"ad_reporting_docs_linkedin_ads_source\".\"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": "ad_reporting_docs_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": 1722277887.58897, "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\".\"ad_reporting_docs_linkedin_ads_source\".\"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": "ad_reporting_docs_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": 1722277887.591339, "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\".\"ad_reporting_docs_linkedin_ads_source\".\"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": "ad_reporting_docs_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": 1722277887.592306, "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\".\"ad_reporting_docs_linkedin_ads_source\".\"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": "ad_reporting_docs_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": 1722277887.59327, "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\".\"ad_reporting_docs_linkedin_ads_source\".\"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": "ad_reporting_docs_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": 1722277887.594244, "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\".\"ad_reporting_docs_linkedin_ads_source\".\"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": "ad_reporting_docs_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": 1722277887.596844, "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\".\"ad_reporting_docs_linkedin_ads_source\".\"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": "ad_reporting_docs_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": 1722277887.597821, "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\".\"ad_reporting_docs_linkedin_ads_source\".\"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": "ad_reporting_docs_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": 1722277887.598788, "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\".\"ad_reporting_docs_linkedin_ads_source\".\"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": "ad_reporting_docs_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": 1722277887.6399748, "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\".\"ad_reporting_docs_linkedin_ads_source\".\"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": "ad_reporting_docs_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": 1722277887.641031, "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\".\"ad_reporting_docs_linkedin_ads_source\".\"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": "ad_reporting_docs_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": 1722277887.642024, "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\".\"ad_reporting_docs_linkedin_ads_source\".\"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": "ad_reporting_docs_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": 1722277887.666624, "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\".\"ad_reporting_docs_amazon_ads\".\"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": "ad_reporting_docs_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": 1722277887.667687, "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\".\"ad_reporting_docs_amazon_ads\".\"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": "ad_reporting_docs_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": 1722277887.6686878, "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\".\"ad_reporting_docs_amazon_ads\".\"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": "ad_reporting_docs_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": 1722277887.671102, "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\".\"ad_reporting_docs_amazon_ads\".\"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": "ad_reporting_docs_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": 1722277887.6720982, "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\".\"ad_reporting_docs_amazon_ads\".\"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": "ad_reporting_docs_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": 1722277887.674471, "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\".\"ad_reporting_docs_amazon_ads\".\"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": "ad_reporting_docs_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": 1722277887.675455, "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\".\"ad_reporting_docs_amazon_ads\".\"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": "ad_reporting_docs_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": 1722277887.677804, "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\".\"ad_reporting_docs_amazon_ads\".\"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": "ad_reporting_docs_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": 1722277887.6787891, "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\".\"ad_reporting_docs_amazon_ads\".\"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": "ad_reporting_docs_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": 1722277887.681132, "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\".\"ad_reporting_docs_amazon_ads\".\"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": "ad_reporting_docs_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": 1722277887.6821241, "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\".\"ad_reporting_docs_amazon_ads\".\"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": "ad_reporting_docs_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": 1722277887.684448, "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\".\"ad_reporting_docs_amazon_ads\".\"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": "ad_reporting_docs_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": 1722277887.6854348, "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\".\"ad_reporting_docs_amazon_ads\".\"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": "ad_reporting_docs_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": 1722277887.687773, "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\".\"ad_reporting_docs_amazon_ads\".\"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": "ad_reporting_docs_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": 1722277887.6887538, "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\".\"ad_reporting_docs_amazon_ads\".\"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": "ad_reporting_docs_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": 1722277887.705152, "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\".\"ad_reporting_docs_facebook_ads\".\"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": "ad_reporting_docs_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": 1722277887.706502, "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\".\"ad_reporting_docs_facebook_ads\".\"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": "ad_reporting_docs_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": 1722277887.708917, "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\".\"ad_reporting_docs_facebook_ads\".\"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": "ad_reporting_docs_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": 1722277887.709909, "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\".\"ad_reporting_docs_facebook_ads\".\"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": "ad_reporting_docs_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": 1722277887.712275, "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\".\"ad_reporting_docs_facebook_ads\".\"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": "ad_reporting_docs_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": 1722277887.713266, "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\".\"ad_reporting_docs_facebook_ads\".\"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": "ad_reporting_docs_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": 1722277887.715615, "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\".\"ad_reporting_docs_facebook_ads\".\"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": "ad_reporting_docs_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": 1722277887.7166028, "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\".\"ad_reporting_docs_facebook_ads\".\"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": "ad_reporting_docs_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": 1722277887.718961, "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\".\"ad_reporting_docs_facebook_ads\".\"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": "ad_reporting_docs_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": 1722277887.7199419, "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\".\"ad_reporting_docs_facebook_ads\".\"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": "ad_reporting_docs_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": 1722277887.72229, "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\".\"ad_reporting_docs_facebook_ads\".\"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": "ad_reporting_docs_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": 1722277887.723278, "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\".\"ad_reporting_docs_facebook_ads\".\"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": "ad_reporting_docs_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": 1722277887.738791, "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\".\"ad_reporting_docs_snapchat_ads\".\"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": "ad_reporting_docs_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": 1722277887.740005, "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\".\"ad_reporting_docs_snapchat_ads\".\"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": "ad_reporting_docs_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": 1722277887.740999, "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\".\"ad_reporting_docs_snapchat_ads\".\"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": "ad_reporting_docs_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": 1722277887.743362, "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\".\"ad_reporting_docs_snapchat_ads\".\"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": "ad_reporting_docs_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": 1722277887.744328, "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\".\"ad_reporting_docs_snapchat_ads\".\"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": "ad_reporting_docs_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": 1722277887.745306, "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\".\"ad_reporting_docs_snapchat_ads\".\"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": "ad_reporting_docs_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": 1722277887.747632, "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\".\"ad_reporting_docs_snapchat_ads\".\"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": "ad_reporting_docs_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": 1722277887.748618, "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\".\"ad_reporting_docs_snapchat_ads\".\"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": "ad_reporting_docs_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": 1722277887.74959, "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\".\"ad_reporting_docs_snapchat_ads\".\"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": "ad_reporting_docs_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": 1722277887.751925, "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\".\"ad_reporting_docs_snapchat_ads\".\"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": "ad_reporting_docs_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": 1722277887.752901, "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\".\"ad_reporting_docs_snapchat_ads\".\"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": "ad_reporting_docs_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": 1722277887.753869, "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\".\"ad_reporting_docs_snapchat_ads\".\"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": "ad_reporting_docs_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": 1722277887.756198, "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\".\"ad_reporting_docs_snapchat_ads\".\"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": "ad_reporting_docs_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": 1722277887.757164, "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\".\"ad_reporting_docs_snapchat_ads\".\"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": "ad_reporting_docs_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": 1722277887.758522, "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\".\"ad_reporting_docs_snapchat_ads\".\"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": "ad_reporting_docs_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": 1722277887.759829, "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\".\"ad_reporting_docs_snapchat_ads\".\"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": "ad_reporting_docs_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": 1722277887.778194, "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\".\"ad_reporting_docs_google_ads_source\".\"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": "ad_reporting_docs_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": 1722277887.7792041, "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\".\"ad_reporting_docs_google_ads_source\".\"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": "ad_reporting_docs_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": 1722277887.781572, "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\".\"ad_reporting_docs_google_ads_source\".\"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": "ad_reporting_docs_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": 1722277887.782557, "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\".\"ad_reporting_docs_google_ads_source\".\"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": "ad_reporting_docs_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": 1722277887.784899, "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\".\"ad_reporting_docs_google_ads_source\".\"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": "ad_reporting_docs_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": 1722277887.785886, "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\".\"ad_reporting_docs_google_ads_source\".\"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": "ad_reporting_docs_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": 1722277887.7882419, "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\".\"ad_reporting_docs_google_ads_source\".\"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": "ad_reporting_docs_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": 1722277887.78921, "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\".\"ad_reporting_docs_google_ads_source\".\"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": "ad_reporting_docs_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": 1722277887.7901871, "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\".\"ad_reporting_docs_google_ads_source\".\"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": "ad_reporting_docs_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": 1722277887.792522, "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\".\"ad_reporting_docs_google_ads_source\".\"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": "ad_reporting_docs_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": 1722277887.793498, "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\".\"ad_reporting_docs_google_ads_source\".\"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": "ad_reporting_docs_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": 1722277887.795829, "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\".\"ad_reporting_docs_google_ads_source\".\"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": "ad_reporting_docs_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": 1722277887.796799, "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\".\"ad_reporting_docs_google_ads_source\".\"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": "ad_reporting_docs_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": 1722277887.799438, "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\".\"ad_reporting_docs_google_ads_source\".\"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": "ad_reporting_docs_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": 1722277887.800402, "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\".\"ad_reporting_docs_google_ads_source\".\"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": "ad_reporting_docs_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": 1722277887.8013718, "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\".\"ad_reporting_docs_google_ads_source\".\"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": "ad_reporting_docs_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": 1722277887.80369, "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\".\"ad_reporting_docs_google_ads_source\".\"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": "ad_reporting_docs_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": 1722277887.804655, "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\".\"ad_reporting_docs_google_ads_source\".\"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": "ad_reporting_docs_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": 1722277887.805621, "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\".\"ad_reporting_docs_google_ads_source\".\"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": "ad_reporting_docs_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": 1722277887.807947, "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\".\"ad_reporting_docs_google_ads_source\".\"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": "ad_reporting_docs_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": 1722277887.808911, "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\".\"ad_reporting_docs_google_ads_source\".\"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": "ad_reporting_docs_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": 1722277887.809956, "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\".\"ad_reporting_docs_google_ads_source\".\"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": "ad_reporting_docs_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": 1722277887.8122098, "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\".\"ad_reporting_docs_google_ads_source\".\"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": "ad_reporting_docs_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": 1722277887.813266, "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\".\"ad_reporting_docs_google_ads_source\".\"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": "ad_reporting_docs_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": 1722277887.814249, "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\".\"ad_reporting_docs_google_ads_source\".\"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": "ad_reporting_docs_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": 1722277887.881002, "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\".\"ad_reporting_docs_apple_search_ads\".\"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": "ad_reporting_docs_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": 1722277887.882057, "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\".\"ad_reporting_docs_apple_search_ads\".\"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": "ad_reporting_docs_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": 1722277887.883046, "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\".\"ad_reporting_docs_apple_search_ads\".\"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": "ad_reporting_docs_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": 1722277887.885545, "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\".\"ad_reporting_docs_apple_search_ads\".\"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": "ad_reporting_docs_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": 1722277887.886518, "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\".\"ad_reporting_docs_apple_search_ads\".\"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": "ad_reporting_docs_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": 1722277887.887499, "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\".\"ad_reporting_docs_apple_search_ads\".\"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": "ad_reporting_docs_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": 1722277887.8898518, "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\".\"ad_reporting_docs_apple_search_ads\".\"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": "ad_reporting_docs_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": 1722277887.89082, "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\".\"ad_reporting_docs_apple_search_ads\".\"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": "ad_reporting_docs_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": 1722277887.891857, "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\".\"ad_reporting_docs_apple_search_ads\".\"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": "ad_reporting_docs_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": 1722277887.89413, "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\".\"ad_reporting_docs_apple_search_ads\".\"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": "ad_reporting_docs_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": 1722277887.895175, "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\".\"ad_reporting_docs_apple_search_ads\".\"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": "ad_reporting_docs_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": 1722277887.896151, "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\".\"ad_reporting_docs_apple_search_ads\".\"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": "ad_reporting_docs_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": 1722277887.8985002, "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\".\"ad_reporting_docs_apple_search_ads\".\"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": "ad_reporting_docs_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": 1722277887.899473, "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\".\"ad_reporting_docs_apple_search_ads\".\"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": "ad_reporting_docs_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": 1722277887.9004438, "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\".\"ad_reporting_docs_apple_search_ads\".\"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": "ad_reporting_docs_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": 1722277887.9027698, "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\".\"ad_reporting_docs_apple_search_ads\".\"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": "ad_reporting_docs_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": 1722277887.903738, "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\".\"ad_reporting_docs_apple_search_ads\".\"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": "ad_reporting_docs_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": 1722277887.9047098, "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\".\"ad_reporting_docs_apple_search_ads\".\"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": "ad_reporting_docs_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": 1722277887.930889, "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\".\"ad_reporting_docs_ad_reporting\".\"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": "ad_reporting_docs_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": 1722277887.93194, "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\".\"ad_reporting_docs_ad_reporting\".\"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": "ad_reporting_docs_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": 1722277887.934349, "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\".\"ad_reporting_docs_ad_reporting\".\"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": "ad_reporting_docs_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": 1722277887.9353442, "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\".\"ad_reporting_docs_ad_reporting\".\"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": "ad_reporting_docs_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": 1722277887.937713, "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\".\"ad_reporting_docs_ad_reporting\".\"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": "ad_reporting_docs_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": 1722277887.938702, "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\".\"ad_reporting_docs_ad_reporting\".\"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": "ad_reporting_docs_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": 1722277887.940972, "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\".\"ad_reporting_docs_ad_reporting\".\"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": "ad_reporting_docs_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": 1722277887.942053, "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\".\"ad_reporting_docs_ad_reporting\".\"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": "ad_reporting_docs_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": 1722277887.944319, "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\".\"ad_reporting_docs_ad_reporting\".\"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": "ad_reporting_docs_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": 1722277887.9453921, "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\".\"ad_reporting_docs_ad_reporting\".\"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": "ad_reporting_docs_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": 1722277887.947662, "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\".\"ad_reporting_docs_ad_reporting\".\"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": "ad_reporting_docs_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": 1722277887.948739, "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\".\"ad_reporting_docs_ad_reporting\".\"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": "ad_reporting_docs_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": 1722277887.951328, "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\".\"ad_reporting_docs_ad_reporting\".\"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": "ad_reporting_docs_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": 1722277887.9530408, "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\".\"ad_reporting_docs_ad_reporting\".\"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": "ad_reporting_docs_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": 1722277888.052735, "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\".\"ad_reporting_docs_apple_search_ads_source\".\"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": "ad_reporting_docs_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": 1722277888.053795, "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\".\"ad_reporting_docs_apple_search_ads_source\".\"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": "ad_reporting_docs_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": 1722277888.054847, "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\".\"ad_reporting_docs_apple_search_ads_source\".\"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": "ad_reporting_docs_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": 1722277888.0572522, "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\".\"ad_reporting_docs_apple_search_ads_source\".\"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": "ad_reporting_docs_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": 1722277888.0583029, "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\".\"ad_reporting_docs_apple_search_ads_source\".\"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": "ad_reporting_docs_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": 1722277888.059278, "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\".\"ad_reporting_docs_apple_search_ads_source\".\"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": "ad_reporting_docs_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": 1722277888.061569, "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\".\"ad_reporting_docs_apple_search_ads_source\".\"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": "ad_reporting_docs_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": 1722277888.062647, "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\".\"ad_reporting_docs_apple_search_ads_source\".\"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": "ad_reporting_docs_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": 1722277888.063617, "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\".\"ad_reporting_docs_apple_search_ads_source\".\"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": "ad_reporting_docs_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": 1722277888.066253, "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\".\"ad_reporting_docs_apple_search_ads_source\".\"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": "ad_reporting_docs_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": 1722277888.067234, "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\".\"ad_reporting_docs_apple_search_ads_source\".\"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": "ad_reporting_docs_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": 1722277888.068206, "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\".\"ad_reporting_docs_apple_search_ads_source\".\"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": "ad_reporting_docs_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": 1722277888.069181, "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\".\"ad_reporting_docs_apple_search_ads_source\".\"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": "ad_reporting_docs_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": 1722277888.0715258, "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\".\"ad_reporting_docs_apple_search_ads_source\".\"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": "ad_reporting_docs_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": 1722277888.0725, "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\".\"ad_reporting_docs_apple_search_ads_source\".\"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": "ad_reporting_docs_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": 1722277888.073474, "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\".\"ad_reporting_docs_apple_search_ads_source\".\"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": "ad_reporting_docs_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": 1722277888.075808, "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\".\"ad_reporting_docs_apple_search_ads_source\".\"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": "ad_reporting_docs_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": 1722277888.07678, "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\".\"ad_reporting_docs_apple_search_ads_source\".\"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": "ad_reporting_docs_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": 1722277888.0778198, "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\".\"ad_reporting_docs_apple_search_ads_source\".\"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": "ad_reporting_docs_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": 1722277888.08011, "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\".\"ad_reporting_docs_apple_search_ads_source\".\"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": "ad_reporting_docs_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": 1722277888.081155, "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\".\"ad_reporting_docs_apple_search_ads_source\".\"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": "ad_reporting_docs_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": 1722277888.082127, "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\".\"ad_reporting_docs_apple_search_ads_source\".\"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": "ad_reporting_docs_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": 1722277888.0843909, "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\".\"ad_reporting_docs_apple_search_ads_source\".\"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": "ad_reporting_docs_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": 1722277888.085456, "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\".\"ad_reporting_docs_apple_search_ads_source\".\"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": "ad_reporting_docs_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": 1722277888.0864372, "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\".\"ad_reporting_docs_apple_search_ads_source\".\"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": "ad_reporting_docs_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": 1722277888.0887702, "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\".\"ad_reporting_docs_apple_search_ads_source\".\"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": "ad_reporting_docs_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": 1722277888.089749, "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\".\"ad_reporting_docs_apple_search_ads_source\".\"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": "ad_reporting_docs_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": 1722277888.092083, "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\".\"ad_reporting_docs_apple_search_ads_source\".\"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": "ad_reporting_docs_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": 1722277888.093056, "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\".\"ad_reporting_docs_apple_search_ads_source\".\"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": "ad_reporting_docs_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": 1722277888.094029, "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\".\"ad_reporting_docs_apple_search_ads_source\".\"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": "ad_reporting_docs_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": 1722277888.113021, "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\".\"ad_reporting_docs_pinterest_source\".\"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": "ad_reporting_docs_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": 1722277888.114032, "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\".\"ad_reporting_docs_pinterest_source\".\"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": "ad_reporting_docs_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": 1722277888.116386, "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\".\"ad_reporting_docs_pinterest_source\".\"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": "ad_reporting_docs_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": 1722277888.117364, "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\".\"ad_reporting_docs_pinterest_source\".\"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": "ad_reporting_docs_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": 1722277888.1197078, "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\".\"ad_reporting_docs_pinterest_source\".\"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": "ad_reporting_docs_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": 1722277888.1206882, "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\".\"ad_reporting_docs_pinterest_source\".\"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": "ad_reporting_docs_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": 1722277888.123023, "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\".\"ad_reporting_docs_pinterest_source\".\"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": "ad_reporting_docs_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": 1722277888.123992, "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\".\"ad_reporting_docs_pinterest_source\".\"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": "ad_reporting_docs_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": 1722277888.124972, "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\".\"ad_reporting_docs_pinterest_source\".\"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": "ad_reporting_docs_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": 1722277888.127312, "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\".\"ad_reporting_docs_pinterest_source\".\"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": "ad_reporting_docs_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": 1722277888.128284, "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\".\"ad_reporting_docs_pinterest_source\".\"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": "ad_reporting_docs_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": 1722277888.129261, "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\".\"ad_reporting_docs_pinterest_source\".\"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": "ad_reporting_docs_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": 1722277888.131594, "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\".\"ad_reporting_docs_pinterest_source\".\"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": "ad_reporting_docs_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": 1722277888.132577, "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\".\"ad_reporting_docs_pinterest_source\".\"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": "ad_reporting_docs_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": 1722277888.134901, "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\".\"ad_reporting_docs_pinterest_source\".\"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": "ad_reporting_docs_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": 1722277888.1358662, "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\".\"ad_reporting_docs_pinterest_source\".\"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": "ad_reporting_docs_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": 1722277888.136836, "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\".\"ad_reporting_docs_pinterest_source\".\"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": "ad_reporting_docs_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": 1722277888.139169, "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\".\"ad_reporting_docs_pinterest_source\".\"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": "ad_reporting_docs_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": 1722277888.140137, "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\".\"ad_reporting_docs_pinterest_source\".\"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": "ad_reporting_docs_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": 1722277888.141475, "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\".\"ad_reporting_docs_pinterest_source\".\"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": "ad_reporting_docs_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": 1722277888.1437309, "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\".\"ad_reporting_docs_pinterest_source\".\"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": "ad_reporting_docs_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": 1722277888.144781, "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\".\"ad_reporting_docs_pinterest_source\".\"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": "ad_reporting_docs_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": 1722277888.14703, "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\".\"ad_reporting_docs_pinterest_source\".\"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": "ad_reporting_docs_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": 1722277888.1479979, "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\".\"ad_reporting_docs_pinterest_source\".\"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": "ad_reporting_docs_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": 1722277888.149052, "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\".\"ad_reporting_docs_pinterest_source\".\"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": "ad_reporting_docs_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": 1722277888.242201, "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\".\"ad_reporting_docs_stg_tiktok_ads\".\"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": "ad_reporting_docs_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": 1722277888.243285, "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\".\"ad_reporting_docs_stg_tiktok_ads\".\"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": "ad_reporting_docs_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": 1722277888.245942, "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\".\"ad_reporting_docs_stg_tiktok_ads\".\"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": "ad_reporting_docs_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": 1722277888.2469308, "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\".\"ad_reporting_docs_stg_tiktok_ads\".\"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": "ad_reporting_docs_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": 1722277888.2493088, "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\".\"ad_reporting_docs_stg_tiktok_ads\".\"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": "ad_reporting_docs_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": 1722277888.250299, "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\".\"ad_reporting_docs_stg_tiktok_ads\".\"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": "ad_reporting_docs_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": 1722277888.252668, "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\".\"ad_reporting_docs_stg_tiktok_ads\".\"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": "ad_reporting_docs_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": 1722277888.253657, "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\".\"ad_reporting_docs_stg_tiktok_ads\".\"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": "ad_reporting_docs_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": 1722277888.2560132, "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\".\"ad_reporting_docs_stg_tiktok_ads\".\"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": "ad_reporting_docs_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": 1722277888.256989, "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\".\"ad_reporting_docs_stg_tiktok_ads\".\"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": "ad_reporting_docs_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": 1722277888.257966, "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\".\"ad_reporting_docs_stg_tiktok_ads\".\"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": "ad_reporting_docs_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": 1722277888.260301, "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\".\"ad_reporting_docs_stg_tiktok_ads\".\"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": "ad_reporting_docs_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": 1722277888.261267, "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\".\"ad_reporting_docs_stg_tiktok_ads\".\"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": "ad_reporting_docs_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": 1722277888.262316, "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\".\"ad_reporting_docs_stg_tiktok_ads\".\"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": "ad_reporting_docs_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": 1722277888.264617, "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\".\"ad_reporting_docs_stg_tiktok_ads\".\"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": "ad_reporting_docs_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": 1722277888.2656739, "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\".\"ad_reporting_docs_stg_tiktok_ads\".\"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": "ad_reporting_docs_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": 1722277888.266665, "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\".\"ad_reporting_docs_stg_tiktok_ads\".\"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": "ad_reporting_docs_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": 1722277888.284838, "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\".\"ad_reporting_docs_facebook_ads_source\".\"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": "ad_reporting_docs_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": 1722277888.285902, "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\".\"ad_reporting_docs_facebook_ads_source\".\"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": "ad_reporting_docs_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": 1722277888.286892, "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\".\"ad_reporting_docs_facebook_ads_source\".\"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": "ad_reporting_docs_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": 1722277888.289301, "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\".\"ad_reporting_docs_facebook_ads_source\".\"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": "ad_reporting_docs_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": 1722277888.290284, "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\".\"ad_reporting_docs_facebook_ads_source\".\"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": "ad_reporting_docs_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": 1722277888.291265, "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\".\"ad_reporting_docs_facebook_ads_source\".\"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": "ad_reporting_docs_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": 1722277888.293613, "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\".\"ad_reporting_docs_facebook_ads_source\".\"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": "ad_reporting_docs_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": 1722277888.2945971, "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\".\"ad_reporting_docs_facebook_ads_source\".\"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": "ad_reporting_docs_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": 1722277888.295573, "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\".\"ad_reporting_docs_facebook_ads_source\".\"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": "ad_reporting_docs_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": 1722277888.2979279, "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\".\"ad_reporting_docs_facebook_ads_source\".\"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": "ad_reporting_docs_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": 1722277888.298903, "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\".\"ad_reporting_docs_facebook_ads_source\".\"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": "ad_reporting_docs_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": 1722277888.299878, "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\".\"ad_reporting_docs_facebook_ads_source\".\"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": "ad_reporting_docs_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": 1722277888.302224, "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\".\"ad_reporting_docs_facebook_ads_source\".\"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": "ad_reporting_docs_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": 1722277888.30319, "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\".\"ad_reporting_docs_facebook_ads_source\".\"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": "ad_reporting_docs_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": 1722277888.304231, "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\".\"ad_reporting_docs_facebook_ads_source\".\"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": "ad_reporting_docs_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": 1722277888.306493, "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\".\"ad_reporting_docs_facebook_ads_source\".\"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": "ad_reporting_docs_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": 1722277888.3075368, "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\".\"ad_reporting_docs_facebook_ads_source\".\"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": "ad_reporting_docs_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": 1722277888.308511, "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\".\"ad_reporting_docs_facebook_ads_source\".\"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.snapchat_ads_source.not_null_stg_snapchat_ads__ad_account_history__fivetran_synced.2d5dd77824": {"database": "postgres", "schema": "ad_reporting_docs_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": 1722277888.34111, "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\".\"ad_reporting_docs_snapchat_ads_source\".\"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": "ad_reporting_docs_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": 1722277888.342135, "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\".\"ad_reporting_docs_snapchat_ads_source\".\"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": "ad_reporting_docs_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": 1722277888.343173, "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\".\"ad_reporting_docs_snapchat_ads_source\".\"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": "ad_reporting_docs_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": 1722277888.3454962, "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\".\"ad_reporting_docs_snapchat_ads_source\".\"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": "ad_reporting_docs_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": 1722277888.3465412, "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\".\"ad_reporting_docs_snapchat_ads_source\".\"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": "ad_reporting_docs_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": 1722277888.347518, "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\".\"ad_reporting_docs_snapchat_ads_source\".\"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": "ad_reporting_docs_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": 1722277888.349797, "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\".\"ad_reporting_docs_snapchat_ads_source\".\"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": "ad_reporting_docs_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": 1722277888.351126, "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\".\"ad_reporting_docs_snapchat_ads_source\".\"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": "ad_reporting_docs_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": 1722277888.3521101, "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\".\"ad_reporting_docs_snapchat_ads_source\".\"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": "ad_reporting_docs_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": 1722277888.354464, "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\".\"ad_reporting_docs_snapchat_ads_source\".\"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": "ad_reporting_docs_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": 1722277888.355445, "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\".\"ad_reporting_docs_snapchat_ads_source\".\"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": "ad_reporting_docs_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": 1722277888.356417, "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\".\"ad_reporting_docs_snapchat_ads_source\".\"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": "ad_reporting_docs_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": 1722277888.359248, "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\".\"ad_reporting_docs_snapchat_ads_source\".\"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": "ad_reporting_docs_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": 1722277888.360248, "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\".\"ad_reporting_docs_snapchat_ads_source\".\"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": "ad_reporting_docs_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": 1722277888.361251, "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\".\"ad_reporting_docs_snapchat_ads_source\".\"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": "ad_reporting_docs_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": 1722277888.3638248, "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\".\"ad_reporting_docs_snapchat_ads_source\".\"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": "ad_reporting_docs_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": 1722277888.364809, "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\".\"ad_reporting_docs_snapchat_ads_source\".\"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": "ad_reporting_docs_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": 1722277888.365793, "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\".\"ad_reporting_docs_snapchat_ads_source\".\"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": "ad_reporting_docs_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": 1722277888.368542, "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\".\"ad_reporting_docs_snapchat_ads_source\".\"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": "ad_reporting_docs_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": 1722277888.369578, "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\".\"ad_reporting_docs_snapchat_ads_source\".\"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": "ad_reporting_docs_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": 1722277888.370676, "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\".\"ad_reporting_docs_snapchat_ads_source\".\"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": "ad_reporting_docs_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": 1722277888.373301, "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\".\"ad_reporting_docs_snapchat_ads_source\".\"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": "ad_reporting_docs_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": 1722277888.374358, "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\".\"ad_reporting_docs_snapchat_ads_source\".\"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": "ad_reporting_docs_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": 1722277888.375333, "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\".\"ad_reporting_docs_snapchat_ads_source\".\"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": "ad_reporting_docs_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": 1722277888.377773, "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\".\"ad_reporting_docs_snapchat_ads_source\".\"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": "ad_reporting_docs_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": 1722277888.378783, "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\".\"ad_reporting_docs_snapchat_ads_source\".\"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": "ad_reporting_docs_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": 1722277888.396565, "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\".\"ad_reporting_docs_microsoft_ads\".\"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": "ad_reporting_docs_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": 1722277888.3976572, "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\".\"ad_reporting_docs_microsoft_ads\".\"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": "ad_reporting_docs_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": 1722277888.4002519, "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\".\"ad_reporting_docs_microsoft_ads\".\"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": "ad_reporting_docs_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": 1722277888.4013572, "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\".\"ad_reporting_docs_microsoft_ads\".\"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": "ad_reporting_docs_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": 1722277888.403809, "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\".\"ad_reporting_docs_microsoft_ads\".\"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": "ad_reporting_docs_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": 1722277888.404808, "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\".\"ad_reporting_docs_microsoft_ads\".\"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": "ad_reporting_docs_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": 1722277888.407155, "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\".\"ad_reporting_docs_microsoft_ads\".\"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": "ad_reporting_docs_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": 1722277888.4081411, "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\".\"ad_reporting_docs_microsoft_ads\".\"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": "ad_reporting_docs_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": 1722277888.410895, "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\".\"ad_reporting_docs_microsoft_ads\".\"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": "ad_reporting_docs_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": 1722277888.412063, "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\".\"ad_reporting_docs_microsoft_ads\".\"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": "ad_reporting_docs_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": 1722277888.414657, "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\".\"ad_reporting_docs_microsoft_ads\".\"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": "ad_reporting_docs_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": 1722277888.415659, "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\".\"ad_reporting_docs_microsoft_ads\".\"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": "ad_reporting_docs_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": 1722277888.418397, "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\".\"ad_reporting_docs_microsoft_ads\".\"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": "ad_reporting_docs_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": 1722277888.419735, "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\".\"ad_reporting_docs_microsoft_ads\".\"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": "ad_reporting_docs_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": 1722277888.448853, "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\".\"ad_reporting_docs_twitter_ads_source\".\"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": "ad_reporting_docs_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": 1722277888.449894, "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\".\"ad_reporting_docs_twitter_ads_source\".\"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": "ad_reporting_docs_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": 1722277888.452304, "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\".\"ad_reporting_docs_twitter_ads_source\".\"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": "ad_reporting_docs_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": 1722277888.453289, "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\".\"ad_reporting_docs_twitter_ads_source\".\"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": "ad_reporting_docs_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": 1722277888.455905, "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\".\"ad_reporting_docs_twitter_ads_source\".\"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": "ad_reporting_docs_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": 1722277888.456884, "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\".\"ad_reporting_docs_twitter_ads_source\".\"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": "ad_reporting_docs_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": 1722277888.505333, "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\".\"ad_reporting_docs_twitter_ads_source\".\"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": "ad_reporting_docs_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": 1722277888.506334, "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\".\"ad_reporting_docs_twitter_ads_source\".\"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": "ad_reporting_docs_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": 1722277888.508903, "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\".\"ad_reporting_docs_twitter_ads_source\".\"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": "ad_reporting_docs_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": 1722277888.5098948, "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\".\"ad_reporting_docs_twitter_ads_source\".\"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": "ad_reporting_docs_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": 1722277888.5108669, "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\".\"ad_reporting_docs_twitter_ads_source\".\"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": "ad_reporting_docs_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": 1722277888.511913, "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\".\"ad_reporting_docs_twitter_ads_source\".\"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": "ad_reporting_docs_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": 1722277888.514218, "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\".\"ad_reporting_docs_twitter_ads_source\".\"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": "ad_reporting_docs_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": 1722277888.515275, "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\".\"ad_reporting_docs_twitter_ads_source\".\"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": "ad_reporting_docs_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": 1722277888.516246, "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\".\"ad_reporting_docs_twitter_ads_source\".\"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": "ad_reporting_docs_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": 1722277888.518604, "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\".\"ad_reporting_docs_twitter_ads_source\".\"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": "ad_reporting_docs_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": 1722277888.519583, "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\".\"ad_reporting_docs_twitter_ads_source\".\"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": "ad_reporting_docs_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": 1722277888.520554, "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\".\"ad_reporting_docs_twitter_ads_source\".\"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": "ad_reporting_docs_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": 1722277888.521534, "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\".\"ad_reporting_docs_twitter_ads_source\".\"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": "ad_reporting_docs_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": 1722277888.5238788, "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\".\"ad_reporting_docs_twitter_ads_source\".\"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": "ad_reporting_docs_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": 1722277888.5248451, "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\".\"ad_reporting_docs_twitter_ads_source\".\"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": "ad_reporting_docs_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": 1722277888.525811, "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\".\"ad_reporting_docs_twitter_ads_source\".\"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": "ad_reporting_docs_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": 1722277888.5268521, "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\".\"ad_reporting_docs_twitter_ads_source\".\"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": "ad_reporting_docs_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": 1722277888.529153, "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": "postgres", "schema": "ad_reporting_docs_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": 1722277888.5302012, "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": "postgres", "schema": "ad_reporting_docs_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": 1722277888.5311801, "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": "postgres", "schema": "ad_reporting_docs_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": 1722277888.5335581, "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\".\"ad_reporting_docs_twitter_ads_source\".\"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": "ad_reporting_docs_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": 1722277888.534542, "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\".\"ad_reporting_docs_twitter_ads_source\".\"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": "ad_reporting_docs_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": 1722277888.5513542, "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\".\"ad_reporting_docs_linkedin_ads\".\"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": "ad_reporting_docs_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": 1722277888.552446, "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\".\"ad_reporting_docs_linkedin_ads\".\"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": "ad_reporting_docs_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": 1722277888.553448, "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\".\"ad_reporting_docs_linkedin_ads\".\"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": "ad_reporting_docs_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": 1722277888.5559502, "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\".\"ad_reporting_docs_linkedin_ads\".\"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": "ad_reporting_docs_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": 1722277888.5569332, "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\".\"ad_reporting_docs_linkedin_ads\".\"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": "ad_reporting_docs_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": 1722277888.5579178, "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\".\"ad_reporting_docs_linkedin_ads\".\"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": "ad_reporting_docs_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": 1722277888.560311, "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\".\"ad_reporting_docs_linkedin_ads\".\"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": "ad_reporting_docs_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": 1722277888.561296, "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\".\"ad_reporting_docs_linkedin_ads\".\"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": "ad_reporting_docs_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": 1722277888.56228, "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\".\"ad_reporting_docs_linkedin_ads\".\"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": "ad_reporting_docs_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": 1722277888.5646532, "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\".\"ad_reporting_docs_linkedin_ads\".\"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": "ad_reporting_docs_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": 1722277888.5656278, "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\".\"ad_reporting_docs_linkedin_ads\".\"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": "ad_reporting_docs_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": 1722277888.5666208, "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\".\"ad_reporting_docs_linkedin_ads\".\"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": "ad_reporting_docs_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": 1722277888.5689821, "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\".\"ad_reporting_docs_linkedin_ads\".\"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": "ad_reporting_docs_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": 1722277888.569961, "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\".\"ad_reporting_docs_linkedin_ads\".\"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": "ad_reporting_docs_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": 1722277888.571336, "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\".\"ad_reporting_docs_linkedin_ads\".\"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": "ad_reporting_docs_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": 1722277888.572661, "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\".\"ad_reporting_docs_linkedin_ads\".\"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": "ad_reporting_docs", "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\".\"ad_reporting_docs\".\"microsoft_ads_account_history_data\"", "created_at": 1722277888.577784}, "source.microsoft_ads_source.microsoft_ads.account_performance_daily_report": {"database": "postgres", "schema": "ad_reporting_docs", "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": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"microsoft_ads_account_performance_daily_report_data\"", "created_at": 1722277888.5785651}, "source.microsoft_ads_source.microsoft_ads.ad_group_history": {"database": "postgres", "schema": "ad_reporting_docs", "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\".\"ad_reporting_docs\".\"microsoft_ads_ad_group_history_data\"", "created_at": 1722277888.578686}, "source.microsoft_ads_source.microsoft_ads.ad_group_performance_daily_report": {"database": "postgres", "schema": "ad_reporting_docs", "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": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"microsoft_ads_ad_group_performance_daily_report_data\"", "created_at": 1722277888.578815}, "source.microsoft_ads_source.microsoft_ads.ad_history": {"database": "postgres", "schema": "ad_reporting_docs", "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\".\"ad_reporting_docs\".\"microsoft_ads_ad_history_data\"", "created_at": 1722277888.578924}, "source.microsoft_ads_source.microsoft_ads.ad_performance_daily_report": {"database": "postgres", "schema": "ad_reporting_docs", "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": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"microsoft_ads_ad_performance_daily_report_data\"", "created_at": 1722277888.57905}, "source.microsoft_ads_source.microsoft_ads.campaign_history": {"database": "postgres", "schema": "ad_reporting_docs", "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\".\"ad_reporting_docs\".\"microsoft_ads_campaign_history_data\"", "created_at": 1722277888.57916}, "source.microsoft_ads_source.microsoft_ads.campaign_performance_daily_report": {"database": "postgres", "schema": "ad_reporting_docs", "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": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"microsoft_ads_campaign_performance_daily_report_data\"", "created_at": 1722277888.5792818}, "source.microsoft_ads_source.microsoft_ads.keyword_history": {"database": "postgres", "schema": "ad_reporting_docs", "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\".\"ad_reporting_docs\".\"microsoft_ads_keyword_history_data\"", "created_at": 1722277888.579387}, "source.microsoft_ads_source.microsoft_ads.keyword_performance_daily_report": {"database": "postgres", "schema": "ad_reporting_docs", "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": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"microsoft_ads_keyword_performance_daily_report_data\"", "created_at": 1722277888.579585}, "source.microsoft_ads_source.microsoft_ads.search_query_performance_daily_report": {"database": "postgres", "schema": "ad_reporting_docs", "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": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"microsoft_ads_search_performance_daily_report_data\"", "created_at": 1722277888.579712}, "source.reddit_ads_source.reddit_ads.account": {"database": "postgres", "schema": "ad_reporting_docs", "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\".\"ad_reporting_docs\".\"reddit_ads_account_data\"", "created_at": 1722277888.5798268}, "source.reddit_ads_source.reddit_ads.account_report": {"database": "postgres", "schema": "ad_reporting_docs", "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\".\"ad_reporting_docs\".\"reddit_ads_account_report_data\"", "created_at": 1722277888.579958}, "source.reddit_ads_source.reddit_ads.ad": {"database": "postgres", "schema": "ad_reporting_docs", "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\".\"ad_reporting_docs\".\"reddit_ads_ad_data\"", "created_at": 1722277888.580076}, "source.reddit_ads_source.reddit_ads.ad_report": {"database": "postgres", "schema": "ad_reporting_docs", "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\".\"ad_reporting_docs\".\"reddit_ads_ad_report_data\"", "created_at": 1722277888.58021}, "source.reddit_ads_source.reddit_ads.ad_group": {"database": "postgres", "schema": "ad_reporting_docs", "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\".\"ad_reporting_docs\".\"reddit_ads_ad_group_data\"", "created_at": 1722277888.5803342}, "source.reddit_ads_source.reddit_ads.ad_group_report": {"database": "postgres", "schema": "ad_reporting_docs", "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\".\"ad_reporting_docs\".\"reddit_ads_ad_group_report_data\"", "created_at": 1722277888.5804641}, "source.reddit_ads_source.reddit_ads.campaign": {"database": "postgres", "schema": "ad_reporting_docs", "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\".\"ad_reporting_docs\".\"reddit_ads_campaign_data\"", "created_at": 1722277888.580575}, "source.reddit_ads_source.reddit_ads.campaign_report": {"database": "postgres", "schema": "ad_reporting_docs", "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\".\"ad_reporting_docs\".\"reddit_ads_campaign_report_data\"", "created_at": 1722277888.581105}, "source.amazon_ads_source.amazon_ads.ad_group_history": {"database": "postgres", "schema": "ad_reporting_docs", "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\".\"ad_reporting_docs\".\"amazon_ads_ad_group_history_data\"", "created_at": 1722277888.581225}, "source.amazon_ads_source.amazon_ads.ad_group_level_report": {"database": "postgres", "schema": "ad_reporting_docs", "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": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"amazon_ads_ad_group_level_report_data\"", "created_at": 1722277888.581332}, "source.amazon_ads_source.amazon_ads.advertised_product_report": {"database": "postgres", "schema": "ad_reporting_docs", "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": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"amazon_ads_advertised_product_report_data\"", "created_at": 1722277888.581449}, "source.amazon_ads_source.amazon_ads.campaign_history": {"database": "postgres", "schema": "ad_reporting_docs", "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\".\"ad_reporting_docs\".\"amazon_ads_campaign_history_data\"", "created_at": 1722277888.581572}, "source.amazon_ads_source.amazon_ads.campaign_level_report": {"database": "postgres", "schema": "ad_reporting_docs", "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": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"amazon_ads_campaign_level_report_data\"", "created_at": 1722277888.581686}, "source.amazon_ads_source.amazon_ads.keyword_history": {"database": "postgres", "schema": "ad_reporting_docs", "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\".\"ad_reporting_docs\".\"amazon_ads_keyword_history_data\"", "created_at": 1722277888.5818}, "source.amazon_ads_source.amazon_ads.portfolio_history": {"database": "postgres", "schema": "ad_reporting_docs", "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\".\"ad_reporting_docs\".\"amazon_ads_portfolio_history_data\"", "created_at": 1722277888.5819159}, "source.amazon_ads_source.amazon_ads.product_ad_history": {"database": "postgres", "schema": "ad_reporting_docs", "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\".\"ad_reporting_docs\".\"amazon_ads_product_ad_history_data\"", "created_at": 1722277888.582025}, "source.amazon_ads_source.amazon_ads.profile": {"database": "postgres", "schema": "ad_reporting_docs", "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\".\"ad_reporting_docs\".\"amazon_ads_profile_data\"", "created_at": 1722277888.58214}, "source.amazon_ads_source.amazon_ads.targeting_keyword_report": {"database": "postgres", "schema": "ad_reporting_docs", "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": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"amazon_ads_targeting_keyword_report_data\"", "created_at": 1722277888.5822651}, "source.amazon_ads_source.amazon_ads.search_term_ad_keyword_report": {"database": "postgres", "schema": "ad_reporting_docs", "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": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"amazon_ads_search_term_ad_keyword_report_data\"", "created_at": 1722277888.58238}, "source.linkedin_source.linkedin_ads.ad_analytics_by_creative": {"database": "postgres", "schema": "ad_reporting_docs", "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\".\"ad_reporting_docs\".\"linkedin_ad_analytics_by_creative_data\"", "created_at": 1722277888.5824919}, "source.linkedin_source.linkedin_ads.creative_history": {"database": "postgres", "schema": "ad_reporting_docs", "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": "\"postgres\".\"ad_reporting_docs\".\"linkedin_ad_creative_history_data\"", "created_at": 1722277888.582633}, "source.linkedin_source.linkedin_ads.campaign_history": {"database": "postgres", "schema": "ad_reporting_docs", "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\".\"ad_reporting_docs\".\"linkedin_ad_campaign_history_data\"", "created_at": 1722277888.582767}, "source.linkedin_source.linkedin_ads.campaign_group_history": {"database": "postgres", "schema": "ad_reporting_docs", "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\".\"ad_reporting_docs\".\"linkedin_ad_campaign_group_history_data\"", "created_at": 1722277888.5828822}, "source.linkedin_source.linkedin_ads.account_history": {"database": "postgres", "schema": "ad_reporting_docs", "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\".\"ad_reporting_docs\".\"linkedin_ad_account_history_data\"", "created_at": 1722277888.583004}, "source.linkedin_source.linkedin_ads.ad_analytics_by_campaign": {"database": "postgres", "schema": "ad_reporting_docs", "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\".\"ad_reporting_docs\".\"linkedin_ad_analytics_by_campaign_data\"", "created_at": 1722277888.583117}, "source.google_ads_source.google_ads.ad_stats": {"database": "postgres", "schema": "ad_reporting_docs", "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\".\"ad_reporting_docs\".\"google_ads_ad_stats_data\"", "created_at": 1722277888.583241}, "source.google_ads_source.google_ads.ad_history": {"database": "postgres", "schema": "ad_reporting_docs", "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\".\"ad_reporting_docs\".\"google_ads_ad_history_data\"", "created_at": 1722277888.583349}, "source.google_ads_source.google_ads.ad_group_history": {"database": "postgres", "schema": "ad_reporting_docs", "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\".\"ad_reporting_docs\".\"google_ads_ad_group_history_data\"", "created_at": 1722277888.583454}, "source.google_ads_source.google_ads.campaign_history": {"database": "postgres", "schema": "ad_reporting_docs", "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\".\"ad_reporting_docs\".\"google_ads_campaign_history_data\"", "created_at": 1722277888.5835679}, "source.google_ads_source.google_ads.account_history": {"database": "postgres", "schema": "ad_reporting_docs", "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\".\"ad_reporting_docs\".\"google_ads_account_history_data\"", "created_at": 1722277888.5836742}, "source.google_ads_source.google_ads.ad_group_criterion_history": {"database": "postgres", "schema": "ad_reporting_docs", "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\".\"ad_reporting_docs\".\"google_ads_ad_group_criterion_history_data\"", "created_at": 1722277888.583782}, "source.google_ads_source.google_ads.ad_group_stats": {"database": "postgres", "schema": "ad_reporting_docs", "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\".\"ad_reporting_docs\".\"google_ads_ad_group_stats_data\"", "created_at": 1722277888.583916}, "source.google_ads_source.google_ads.campaign_stats": {"database": "postgres", "schema": "ad_reporting_docs", "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\".\"ad_reporting_docs\".\"google_ads_campaign_stats_data\"", "created_at": 1722277888.584026}, "source.google_ads_source.google_ads.keyword_stats": {"database": "postgres", "schema": "ad_reporting_docs", "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\".\"ad_reporting_docs\".\"google_ads_keyword_stats_data\"", "created_at": 1722277888.584141}, "source.google_ads_source.google_ads.account_stats": {"database": "postgres", "schema": "ad_reporting_docs", "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\".\"ad_reporting_docs\".\"google_ads_account_stats_data\"", "created_at": 1722277888.584247}, "source.apple_search_ads_source.apple_search_ads.ad_group_history": {"database": "postgres", "schema": "ad_reporting_docs", "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\".\"ad_reporting_docs\".\"apple_search_ad_group_history_data\"", "created_at": 1722277888.58436}, "source.apple_search_ads_source.apple_search_ads.ad_group_report": {"database": "postgres", "schema": "ad_reporting_docs", "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": []}, "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\".\"ad_reporting_docs\".\"apple_search_ad_group_report_data\"", "created_at": 1722277888.58447}, "source.apple_search_ads_source.apple_search_ads.ad_history": {"database": "postgres", "schema": "ad_reporting_docs", "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\".\"ad_reporting_docs\".\"apple_search_ad_history_data\"", "created_at": 1722277888.584576}, "source.apple_search_ads_source.apple_search_ads.ad_level_report": {"database": "postgres", "schema": "ad_reporting_docs", "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": "ad_level_report", "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": []}, "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\".\"ad_reporting_docs\".\"ad_level_report\"", "created_at": 1722277888.5846882}, "source.apple_search_ads_source.apple_search_ads.campaign_history": {"database": "postgres", "schema": "ad_reporting_docs", "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\".\"ad_reporting_docs\".\"apple_search_campaign_history_data\"", "created_at": 1722277888.584794}, "source.apple_search_ads_source.apple_search_ads.campaign_report": {"database": "postgres", "schema": "ad_reporting_docs", "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": []}, "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\".\"ad_reporting_docs\".\"apple_search_campaign_report_data\"", "created_at": 1722277888.5849018}, "source.apple_search_ads_source.apple_search_ads.keyword_history": {"database": "postgres", "schema": "ad_reporting_docs", "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\".\"ad_reporting_docs\".\"apple_search_keyword_history_data\"", "created_at": 1722277888.585013}, "source.apple_search_ads_source.apple_search_ads.keyword_report": {"database": "postgres", "schema": "ad_reporting_docs", "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": []}, "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\".\"ad_reporting_docs\".\"apple_search_keyword_report_data\"", "created_at": 1722277888.585124}, "source.apple_search_ads_source.apple_search_ads.organization": {"database": "postgres", "schema": "ad_reporting_docs", "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\".\"ad_reporting_docs\".\"apple_search_organization_data\"", "created_at": 1722277888.585227}, "source.apple_search_ads_source.apple_search_ads.search_term_report": {"database": "postgres", "schema": "ad_reporting_docs", "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": []}, "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\".\"ad_reporting_docs\".\"apple_search_search_term_report_data\"", "created_at": 1722277888.585377}, "source.pinterest_source.pinterest_ads.pin_promotion_report": {"database": "postgres", "schema": "ad_reporting_docs", "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": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"pinterest_pin_promotion_report_data\"", "created_at": 1722277888.585496}, "source.pinterest_source.pinterest_ads.pin_promotion_history": {"database": "postgres", "schema": "ad_reporting_docs", "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\".\"ad_reporting_docs\".\"pinterest_pin_promotion_history_data\"", "created_at": 1722277888.58561}, "source.pinterest_source.pinterest_ads.campaign_history": {"database": "postgres", "schema": "ad_reporting_docs", "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\".\"ad_reporting_docs\".\"pinterest_campaign_history_data\"", "created_at": 1722277888.585721}, "source.pinterest_source.pinterest_ads.ad_group_history": {"database": "postgres", "schema": "ad_reporting_docs", "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\".\"ad_reporting_docs\".\"pinterest_ad_group_history_data\"", "created_at": 1722277888.585834}, "source.pinterest_source.pinterest_ads.ad_group_report": {"database": "postgres", "schema": "ad_reporting_docs", "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": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"pinterest_ad_group_report_data\"", "created_at": 1722277888.585949}, "source.pinterest_source.pinterest_ads.advertiser_history": {"database": "postgres", "schema": "ad_reporting_docs", "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\".\"ad_reporting_docs\".\"pinterest_advertiser_history_data\"", "created_at": 1722277888.5860622}, "source.pinterest_source.pinterest_ads.advertiser_report": {"database": "postgres", "schema": "ad_reporting_docs", "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": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"pinterest_advertiser_report_data\"", "created_at": 1722277888.5861702}, "source.pinterest_source.pinterest_ads.campaign_report": {"database": "postgres", "schema": "ad_reporting_docs", "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": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"pinterest_campaign_report_data\"", "created_at": 1722277888.586281}, "source.pinterest_source.pinterest_ads.keyword_history": {"database": "postgres", "schema": "ad_reporting_docs", "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\".\"ad_reporting_docs\".\"pinterest_keyword_history_data\"", "created_at": 1722277888.586396}, "source.pinterest_source.pinterest_ads.keyword_report": {"database": "postgres", "schema": "ad_reporting_docs", "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": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"pinterest_keyword_report_data\"", "created_at": 1722277888.5865102}, "source.tiktok_ads_source.tiktok_ads.advertiser": {"database": "postgres", "schema": "ad_reporting_docs", "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\".\"ad_reporting_docs\".\"tiktok_advertiser_data\"", "created_at": 1722277888.586669}, "source.tiktok_ads_source.tiktok_ads.campaign_history": {"database": "postgres", "schema": "ad_reporting_docs", "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\".\"ad_reporting_docs\".\"tiktok_campaign_history_data\"", "created_at": 1722277888.586785}, "source.tiktok_ads_source.tiktok_ads.adgroup_history": {"database": "postgres", "schema": "ad_reporting_docs", "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": "\"postgres\".\"ad_reporting_docs\".\"tiktok_adgroup_history_data\"", "created_at": 1722277888.5869849}, "source.tiktok_ads_source.tiktok_ads.ad_history": {"database": "postgres", "schema": "ad_reporting_docs", "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\".\"ad_reporting_docs\".\"tiktok_ad_history_data\"", "created_at": 1722277888.587116}, "source.tiktok_ads_source.tiktok_ads.ad_report_hourly": {"database": "postgres", "schema": "ad_reporting_docs", "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": "The number of times your ad achieved an outcome, based on the objective and settings you selected. (The total count is based on when the conversion actually happened.)\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": []}, "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": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"tiktok_ad_report_hourly_data\"", "created_at": 1722277888.587293}, "source.tiktok_ads_source.tiktok_ads.campaign_report_hourly": {"database": "postgres", "schema": "ad_reporting_docs", "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": "The number of times your ad achieved an outcome, based on the objective and settings you selected. (The total count is based on when the conversion actually happened.)\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": []}, "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": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"tiktok_campaign_report_hourly_data\"", "created_at": 1722277888.587451}, "source.tiktok_ads_source.tiktok_ads.adgroup_report_hourly": {"database": "postgres", "schema": "ad_reporting_docs", "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": "The number of times your ad achieved an outcome, based on the objective and settings you selected. (The total count is based on when the conversion actually happened.)\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.)", "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": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"tiktok_adgroup_report_hourly_data\"", "created_at": 1722277888.587608}, "source.facebook_ads_source.facebook_ads.account_history": {"database": "postgres", "schema": "ad_reporting_docs", "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\".\"ad_reporting_docs\".\"facebook_ads_account_history_data\"", "created_at": 1722277888.587719}, "source.facebook_ads_source.facebook_ads.ad_history": {"database": "postgres", "schema": "ad_reporting_docs", "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": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"facebook_ads_ad_history_data\"", "created_at": 1722277888.5878248}, "source.facebook_ads_source.facebook_ads.ad_set_history": {"database": "postgres", "schema": "ad_reporting_docs", "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": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"facebook_ads_ad_set_history_data\"", "created_at": 1722277888.587938}, "source.facebook_ads_source.facebook_ads.basic_ad": {"database": "postgres", "schema": "ad_reporting_docs", "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\".\"ad_reporting_docs\".\"facebook_ads_basic_ad_data\"", "created_at": 1722277888.58805}, "source.facebook_ads_source.facebook_ads.campaign_history": {"database": "postgres", "schema": "ad_reporting_docs", "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\".\"ad_reporting_docs\".\"facebook_ads_campaign_history_data\"", "created_at": 1722277888.588164}, "source.facebook_ads_source.facebook_ads.creative_history": {"database": "postgres", "schema": "ad_reporting_docs", "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\".\"ad_reporting_docs\".\"facebook_ads_creative_history_data\"", "created_at": 1722277888.588307}, "source.snapchat_ads_source.snapchat_ads.ad_account_history": {"database": "postgres", "schema": "ad_reporting_docs", "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\".\"ad_reporting_docs\".\"snapchat_ad_account_history_data\"", "created_at": 1722277888.588416}, "source.snapchat_ads_source.snapchat_ads.ad_history": {"database": "postgres", "schema": "ad_reporting_docs", "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\".\"ad_reporting_docs\".\"snapchat_ad_history_data\"", "created_at": 1722277888.588521}, "source.snapchat_ads_source.snapchat_ads.ad_hourly_report": {"database": "postgres", "schema": "ad_reporting_docs", "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": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"snapchat_ad_hourly_report_data\"", "created_at": 1722277888.588641}, "source.snapchat_ads_source.snapchat_ads.ad_squad_history": {"database": "postgres", "schema": "ad_reporting_docs", "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\".\"ad_reporting_docs\".\"snapchat_ad_squad_history_data\"", "created_at": 1722277888.5887418}, "source.snapchat_ads_source.snapchat_ads.ad_squad_hourly_report": {"database": "postgres", "schema": "ad_reporting_docs", "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": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"snapchat_ad_squad_hourly_report_data\"", "created_at": 1722277888.588861}, "source.snapchat_ads_source.snapchat_ads.campaign_history": {"database": "postgres", "schema": "ad_reporting_docs", "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\".\"ad_reporting_docs\".\"snapchat_campaign_history_data\"", "created_at": 1722277888.588964}, "source.snapchat_ads_source.snapchat_ads.campaign_hourly_report": {"database": "postgres", "schema": "ad_reporting_docs", "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": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"snapchat_campaign_hourly_report_data\"", "created_at": 1722277888.589082}, "source.snapchat_ads_source.snapchat_ads.creative_history": {"database": "postgres", "schema": "ad_reporting_docs", "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\".\"ad_reporting_docs\".\"snapchat_creative_history_data\"", "created_at": 1722277888.589185}, "source.snapchat_ads_source.snapchat_ads.creative_url_tag_history": {"database": "postgres", "schema": "ad_reporting_docs", "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\".\"ad_reporting_docs\".\"snapchat_creative_url_tag_history_data\"", "created_at": 1722277888.5892859}, "source.twitter_ads_source.twitter_ads.account_history": {"database": "postgres", "schema": "ad_reporting_docs", "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\".\"ad_reporting_docs\".\"twitter_account_history_data\"", "created_at": 1722277888.589406}, "source.twitter_ads_source.twitter_ads.campaign_history": {"database": "postgres", "schema": "ad_reporting_docs", "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\".\"ad_reporting_docs\".\"twitter_campaign_history_data\"", "created_at": 1722277888.589549}, "source.twitter_ads_source.twitter_ads.line_item_history": {"database": "postgres", "schema": "ad_reporting_docs", "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\".\"ad_reporting_docs\".\"twitter_line_item_history_data\"", "created_at": 1722277888.589685}, "source.twitter_ads_source.twitter_ads.promoted_tweet_history": {"database": "postgres", "schema": "ad_reporting_docs", "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\".\"ad_reporting_docs\".\"twitter_promoted_tweet_history_data\"", "created_at": 1722277888.5897942}, "source.twitter_ads_source.twitter_ads.tweet_url": {"database": "postgres", "schema": "ad_reporting_docs", "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\".\"ad_reporting_docs\".\"twitter_tweet_url_data\"", "created_at": 1722277888.589901}, "source.twitter_ads_source.twitter_ads.promoted_tweet_report": {"database": "postgres", "schema": "ad_reporting_docs", "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": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"twitter_promoted_tweet_report_data\"", "created_at": 1722277888.590009}, "source.twitter_ads_source.twitter_ads.tweet": {"database": "postgres", "schema": "ad_reporting_docs", "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\".\"ad_reporting_docs\".\"twitter_tweet_data\"", "created_at": 1722277888.590114}, "source.twitter_ads_source.twitter_ads.campaign_report": {"database": "postgres", "schema": "ad_reporting_docs", "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": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"twitter_campaign_report_data\"", "created_at": 1722277888.5902221}, "source.twitter_ads_source.twitter_ads.line_item_report": {"database": "postgres", "schema": "ad_reporting_docs", "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": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"twitter_line_item_report_data\"", "created_at": 1722277888.5903318}}, "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": 1722277882.982198, "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": 1722277882.982416, "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": 1722277882.982526, "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": 1722277882.982632, "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": 1722277882.9827359, "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": 1722277882.984246, "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": 1722277882.984611, "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": 1722277882.985274, "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": 1722277882.9854028, "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": 1722277882.9945412, "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": 1722277882.995008, "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": 1722277882.9953122, "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": 1722277882.9956129, "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": 1722277882.9960582, "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": 1722277882.996542, "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": 1722277882.996709, "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": 1722277882.997035, "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": 1722277882.997408, "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": 1722277882.998194, "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": 1722277882.9983811, "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": 1722277882.998683, "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": 1722277882.9989471, "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": 1722277882.9993541, "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": 1722277882.9995651, "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": 1722277883.000135, "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": 1722277883.000332, "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": 1722277883.000444, "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": 1722277883.000617, "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": 1722277883.000753, "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": 1722277883.0011158, "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": 1722277883.0018072, "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": 1722277883.0019462, "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": 1722277883.002228, "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": 1722277883.002361, "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": 1722277883.002527, "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": 1722277883.00348, "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": 1722277883.003992, "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": 1722277883.004277, "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": 1722277883.004701, "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": 1722277883.004836, "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": 1722277883.005512, "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": 1722277883.0056791, "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": 1722277883.0058088, "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": 1722277883.006347, "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": 1722277883.006515, "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": 1722277883.0067232, "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": 1722277883.0073411, "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": 1722277883.0106392, "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": 1722277883.010802, "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": 1722277883.0112839, "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": 1722277883.011673, "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": 1722277883.012726, "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": 1722277883.012918, "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": 1722277883.013058, "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": 1722277883.013195, "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": 1722277883.0133288, "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": 1722277883.013694, "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": 1722277883.013977, "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": 1722277883.014265, "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": 1722277883.014685, "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 merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on DBT_INTERNAL_SOURCE.dbt_scd_id = DBT_INTERNAL_DEST.dbt_scd_id\n\n when matched\n and DBT_INTERNAL_DEST.dbt_valid_to is null\n and DBT_INTERNAL_SOURCE.dbt_change_type in ('update', 'delete')\n then update\n set dbt_valid_to = DBT_INTERNAL_SOURCE.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": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1722277883.0149472, "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": 1722277883.018493, "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": 1722277883.01866, "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": 1722277883.018871, "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, config, target_exists) %}\n {% set primary_key = config['unique_key'] %}\n {% set updated_at = config['updated_at'] %}\n {% set invalidate_hard_deletes = config.get('invalidate_hard_deletes', false) %}\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 }}.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.snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1722277883.019559, "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": 1722277883.019719, "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": 1722277883.019886, "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": 1722277883.0212271, "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, config, target_exists) %}\n {% set check_cols_config = config['check_cols'] %}\n {% set primary_key = config['unique_key'] %}\n {% set invalidate_hard_deletes = config.get('invalidate_hard_deletes', false) %}\n {% set updated_at = config.get('updated_at', 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": 1722277883.0225039, "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": 1722277883.026717, "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 }} 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": 1722277883.026994, "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": 1722277883.027242, "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": 1722277883.027361, "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": 1722277883.0275269, "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": 1722277883.027658, "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": 1722277883.02788, "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\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 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 dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n nullif({{ strategy.updated_at }}, {{ strategy.updated_at }}) as dbt_valid_to,\n {{ strategy.scd_id }} as 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 dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n {{ strategy.updated_at }} as 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.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 dbt_valid_from,\n {{ snapshot_get_time() }} as dbt_updated_at,\n {{ snapshot_get_time() }} as dbt_valid_to,\n snapshotted_data.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.snapshot_get_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1722277883.028765, "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": 1722277883.0289578, "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\n select *,\n {{ strategy.scd_id }} as dbt_scd_id,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n nullif({{ strategy.updated_at }}, {{ strategy.updated_at }}) as dbt_valid_to\n from (\n {{ sql }}\n ) sbq\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1722277883.029203, "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": 1722277883.029618, "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 {%- set config = model['config'] -%}\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 {% set strategy = strategy_macro(model, \"snapshotted_data\", \"source_data\", 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 final_sql = create_table_as(False, target_relation, build_sql) %}\n\n {% else %}\n\n {{ adapter.valid_snapshot_target(target_relation) }}\n\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 {% 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.build_snapshot_staging_table", "macro.dbt.create_columns", "macro.dbt.snapshot_merge_sql", "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": 1722277883.035878, "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": 1722277883.038549, "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": 1722277883.039916, "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": 1722277883.040258, "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": 1722277883.040479, "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": 1722277883.041112, "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": 1722277883.041513, "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": 1722277883.041883, "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": 1722277883.043633, "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": 1722277883.048602, "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": 1722277883.049155, "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": 1722277883.0494468, "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 ~ \"`\") }}\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 ~ \"`\") }}\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": 1722277883.050827, "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": 1722277883.051062, "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": 1722277883.051695, "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": 1722277883.054512, "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": 1722277883.0572941, "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": 1722277883.058929, "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": 1722277883.0594702, "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": 1722277883.060122, "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": 1722277883.060359, "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": 1722277883.0610602, "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": 1722277883.067848, "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": 1722277883.0694551, "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": 1722277883.069712, "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": 1722277883.0706701, "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": 1722277883.070932, "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": 1722277883.071556, "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": 1722277883.072167, "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": 1722277883.073077, "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": 1722277883.0733068, "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": 1722277883.073487, "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": 1722277883.0737731, "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": 1722277883.07395, "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": 1722277883.074241, "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": 1722277883.074421, "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": 1722277883.074676, "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": 1722277883.074854, "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": 1722277883.074998, "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": 1722277883.075262, "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 {% do adapter.expand_target_column_types(\n from_relation=temp_relation,\n to_relation=target_relation) %}\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": 1722277883.080153, "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": 1722277883.0859652, "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": 1722277883.087125, "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": 1722277883.088274, "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": 1722277883.089105, "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": 1722277883.089355, "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": 1722277883.08947, "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": 1722277883.089754, "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 }} clone {{ defer_relation }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1722277883.089887, "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 ~ \" 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) }}\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": 1722277883.093484, "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)) }}\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": 1722277883.0966442, "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": 1722277883.102272, "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": 1722277883.103203, "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": 1722277883.1034439, "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 %}\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": 1722277883.1039171, "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": 1722277883.1041138, "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": 1722277883.1042519, "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": 1722277883.104398, "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": 1722277883.104516, "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": 1722277883.104678, "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": 1722277883.104803, "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": 1722277883.1052978, "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": 1722277883.105484, "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": 1722277883.106742, "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": 1722277883.107185, "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": 1722277883.107569, "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": 1722277883.108144, "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": 1722277883.108418, "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": 1722277883.1087239, "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": 1722277883.109165, "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": 1722277883.109762, "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": 1722277883.110647, "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 }} 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": 1722277883.111037, "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": 1722277883.111238, "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": 1722277883.111443, "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": 1722277883.1116438, "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": 1722277883.1124558, "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": 1722277883.113773, "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": 1722277883.114161, "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": 1722277883.1144059, "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": 1722277883.114671, "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": 1722277883.114879, "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": 1722277883.115194, "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": 1722277883.115399, "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": 1722277883.116099, "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": 1722277883.11652, "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": 1722277883.116723, "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 }} 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": 1722277883.116995, "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": 1722277883.117332, "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": 1722277883.1175911, "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": 1722277883.1182542, "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": 1722277883.118869, "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": 1722277883.119252, "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": 1722277883.119479, "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": 1722277883.119751, "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 }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1722277883.1198652, "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": 1722277883.120148, "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": 1722277883.120397, "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": 1722277883.120712, "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": 1722277883.120848, "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": 1722277883.121126, "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": 1722277883.121275, "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": 1722277883.1219158, "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": 1722277883.122109, "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": 1722277883.122411, "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": 1722277883.122556, "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": 1722277883.122837, "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": 1722277883.122984, "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": 1722277883.124033, "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": 1722277883.124158, "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": 1722277883.12472, "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": 1722277883.1248991, "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": 1722277883.125041, "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": 1722277883.1264288, "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": 1722277883.1268108, "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": 1722277883.12716, "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": 1722277883.127437, "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 }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1722277883.127553, "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": 1722277883.127828, "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": 1722277883.12799, "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": 1722277883.128271, "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": 1722277883.128416, "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": 1722277883.1292958, "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": 1722277883.129489, "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": 1722277883.1299388, "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": 1722277883.130653, "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": 1722277883.1311228, "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": 1722277883.131309, "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": 1722277883.131493, "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": 1722277883.1317492, "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 }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1722277883.131857, "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": 1722277883.132735, "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": 1722277883.1328819, "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": 1722277883.1343832, "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": 1722277883.134589, "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 ~ \" 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": 1722277883.134808, "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": 1722277883.135075, "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": 1722277883.135217, "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": 1722277883.135624, "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": 1722277883.1357791, "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": 1722277883.135954, "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 }}\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": 1722277883.1363578, "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": 1722277883.136696, "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": 1722277883.1369832, "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": 1722277883.1372201, "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": 1722277883.1377778, "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": 1722277883.139231, "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": 1722277883.1397882, "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": 1722277883.140069, "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": 1722277883.141956, "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": 1722277883.143154, "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": 1722277883.14389, "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": 1722277883.14413, "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": 1722277883.144364, "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": 1722277883.144446, "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": 1722277883.1451871, "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": 1722277883.145762, "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": 1722277883.145986, "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": 1722277883.146354, "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": 1722277883.1466932, "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": 1722277883.146969, "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": 1722277883.1472902, "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": 1722277883.1474502, "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": 1722277883.147692, "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": 1722277883.1478138, "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": 1722277883.1486459, "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": 1722277883.149066, "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": 1722277883.149259, "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": 1722277883.149767, "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": 1722277883.150031, "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": 1722277883.1501398, "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": 1722277883.150484, "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": 1722277883.1507359, "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": 1722277883.150969, "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": 1722277883.151051, "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": 1722277883.15132, "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": 1722277883.151465, "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": 1722277883.151762, "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": 1722277883.151901, "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": 1722277883.152571, "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": 1722277883.1529758, "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": 1722277883.153321, "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": 1722277883.153486, "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": 1722277883.153771, "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": 1722277883.153909, "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": 1722277883.1541739, "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": 1722277883.154334, "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": 1722277883.154579, "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": 1722277883.154739, "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": 1722277883.155018, "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": 1722277883.155149, "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": 1722277883.1553931, "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": 1722277883.155574, "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": 1722277883.15586, "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": 1722277883.155995, "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": 1722277883.156249, "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": 1722277883.1563551, "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": 1722277883.157482, "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": 1722277883.157642, "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": 1722277883.1578119, "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": 1722277883.1579678, "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": 1722277883.1581361, "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": 1722277883.158293, "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": 1722277883.15846, "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": 1722277883.158643, "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": 1722277883.158804, "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": 1722277883.158953, "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": 1722277883.159114, "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": 1722277883.159256, "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": 1722277883.159416, "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": 1722277883.159565, "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": 1722277883.159852, "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": 1722277883.160059, "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": 1722277883.1603048, "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": 1722277883.160409, "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": 1722277883.1607502, "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": 1722277883.161023, "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": 1722277883.161175, "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": 1722277883.161713, "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": 1722277883.161879, "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": 1722277883.162106, "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": 1722277883.1623812, "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": 1722277883.162511, "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": 1722277883.1628869, "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": 1722277883.163136, "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": 1722277883.1634219, "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": 1722277883.1635551, "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": 1722277883.163927, "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": 1722277883.164109, "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": 1722277883.164274, "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": 1722277883.164453, "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": 1722277883.164938, "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": 1722277883.165154, "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": 1722277883.165296, "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": 1722277883.165401, "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": 1722277883.165565, "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": 1722277883.1656451, "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": 1722277883.165809, "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": 1722277883.165976, "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": 1722277883.166838, "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": 1722277883.166976, "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": 1722277883.167307, "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": 1722277883.167845, "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": 1722277883.168056, "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": 1722277883.1681962, "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": 1722277883.168353, "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": 1722277883.168478, "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": 1722277883.170541, "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": 1722277883.170709, "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": 1722277883.1709251, "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": 1722277883.171211, "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": 1722277883.1715279, "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": 1722277883.1718469, "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": 1722277883.172029, "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 }}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1722277883.1721861, "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": 1722277883.172427, "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": 1722277883.172964, "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": 1722277883.1731899, "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": 1722277883.1733289, "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": 1722277883.173752, "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": 1722277883.174155, "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": 1722277883.174436, "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": 1722277883.174668, "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": 1722277883.1764102, "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": 1722277883.176532, "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": 1722277883.176696, "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": 1722277883.176809, "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": 1722277883.177186, "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": 1722277883.177376, "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 }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1722277883.1774771, "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": 1722277883.1776981, "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 }} 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": 1722277883.177949, "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": 1722277883.178167, "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 }} 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": 1722277883.178355, "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": 1722277883.178578, "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": 1722277883.179234, "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": 1722277883.17942, "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": 1722277883.1796548, "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": 1722277883.179878, "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 ~': 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": 1722277883.18095, "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 -%}\n {{ sql_header }}\n {%- endif -%}\n {%- if limit is not none -%}\n {{ get_limit_subquery_sql(compiled_code, limit) }}\n {%- else -%}\n {{ compiled_code }}\n {%- endif -%}\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": 1722277883.181472, "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": "{% macro get_limit_subquery_sql(sql, limit) %}\n {{ adapter.dispatch('get_limit_subquery_sql', 'dbt')(sql, limit) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_limit_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1722277883.181657, "supported_languages": null}, "macro.dbt.default__get_limit_subquery_sql": {"name": "default__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.default__get_limit_subquery_sql", "macro_sql": "{% macro default__get_limit_subquery_sql(sql, limit) %}\n select *\n from (\n {{ sql }}\n ) as model_limit_subq\n limit {{ limit }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1722277883.181792, "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": 1722277883.1824582, "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": 1722277883.182621, "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": 1722277883.18282, "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": 1722277883.1829891, "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": 1722277883.1832461, "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": 1722277883.1837661, "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": 1722277883.1866, "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": 1722277883.1868448, "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": 1722277883.187047, "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": 1722277883.187456, "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": 1722277883.1876962, "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": 1722277883.187874, "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": 1722277883.1880682, "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": 1722277883.188333, "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": 1722277883.188541, "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": 1722277883.188838, "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": 1722277883.189018, "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": 1722277883.1891782, "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": 1722277883.1893399, "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": 1722277883.189489, "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": 1722277883.189687, "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": 1722277883.189854, "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": 1722277883.192155, "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": 1722277883.19231, "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": 1722277883.192744, "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": 1722277883.192964, "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": 1722277883.1931672, "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": 1722277883.193341, "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": 1722277883.194488, "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": 1722277883.1948202, "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": 1722277883.1950011, "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": 1722277883.195339, "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": 1722277883.1955578, "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 }} add column {{ adapter.quote(tmp_column) }} {{ new_column_type }};\n update {{ relation }} set {{ adapter.quote(tmp_column) }} = {{ adapter.quote(column_name) }};\n alter table {{ relation }} drop column {{ adapter.quote(column_name) }} cascade;\n alter table {{ relation }} 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": 1722277883.196126, "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": 1722277883.196377, "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 }}\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": 1722277883.19715, "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\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.format_row"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1722277883.200403, "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": 1722277883.2010372, "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 -%}", "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": 1722277883.2021592, "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": 1722277883.203923, "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": 1722277883.204103, "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": 1722277883.2049139, "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": 1722277883.205322, "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": 1722277883.2058911, "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": 1722277883.206357, "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": 1722277883.206433, "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": 1722277883.206968, "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": 1722277883.207211, "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": 1722277883.2075179, "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": 1722277883.207812, "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": 1722277883.208669, "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_float()},\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] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('microsoft_ads__campaign_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "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": 1722277883.21086, "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_float()},\n {\"name\": \"top_vs_other\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('microsoft_ads__ad_group_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "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": 1722277883.212783, "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_float()},\n {\"name\": \"top_vs_other\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('microsoft_ads__account_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "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": 1722277883.2143009, "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": 1722277883.215172, "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": 1722277883.215858, "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": 1722277883.216724, "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_float()},\n {\"name\": \"top_vs_other\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('microsoft_ads__ad_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "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": 1722277883.218642, "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_float()},\n {\"name\": \"top_vs_other\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('microsoft_ads__keyword_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "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": 1722277883.220624, "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": 1722277883.221366, "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_float()},\n {\"name\": \"top_vs_other\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('microsoft_ads__search_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "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": 1722277883.223257, "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": 1722277883.2236328, "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": 1722277883.224231, "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": 1722277883.224847, "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": 1722277883.2255611, "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": 1722277883.225902, "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": 1722277883.226243, "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": 1722277883.227372, "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": 1722277883.2286642, "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": 1722277883.229515, "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": 1722277883.230561, "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": 1722277883.231193, "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": 1722277883.231551, "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": 1722277883.232312, "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": 1722277883.233163, "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": 1722277883.233614, "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": 1722277883.234058, "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": 1722277883.234645, "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": 1722277883.235106, "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": 1722277883.2356548, "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": 1722277883.236029, "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": 1722277883.236673, "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 where {{ column_name }} is not null\n limit 1\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": 1722277883.2374232, "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": 1722277883.23804, "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": 1722277883.238711, "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": 1722277883.239236, "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": 1722277883.23957, "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": 1722277883.239959, "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": 1722277883.240302, "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": 1722277883.2409222, "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 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": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1722277883.241686, "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": 1722277883.242576, "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": 1722277883.243438, "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": 1722277883.245353, "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": 1722277883.249151, "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": 1722277883.2496798, "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": 1722277883.249974, "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": 1722277883.253448, "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": 1722277883.254891, "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": 1722277883.2551491, "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": 1722277883.255309, "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": 1722277883.255736, "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": 1722277883.255997, "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": 1722277883.256182, "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": 1722277883.256425, "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": 1722277883.256591, "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{#- 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": 1722277883.257177, "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": 1722277883.257985, "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": 1722277883.258676, "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": 1722277883.259244, "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": 1722277883.259468, "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": 1722277883.259825, "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": 1722277883.2602088, "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": 1722277883.260793, "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": 1722277883.261097, "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": 1722277883.261427, "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": 1722277883.2621179, "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": 1722277883.26293, "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": 1722277883.2637708, "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": 1722277883.264163, "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": 1722277883.2643452, "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": 1722277883.2648342, "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": 1722277883.265523, "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": 1722277883.266334, "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": 1722277883.2667232, "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": 1722277883.266995, "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": 1722277883.268302, "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": 1722277883.269705, "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') -%}\n {{ return(adapter.dispatch('unpivot', 'dbt_utils')(relation, cast_to, exclude, remove, field_name, value_name)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__unpivot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1722277883.271071, "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') -%}\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 select\n {%- for exclude_col in exclude %}\n {{ exclude_col }},\n {%- endfor %}\n\n cast('{{ col.column }}' as {{ dbt.type_string() }}) as {{ field_name }},\n cast( {% if col.data_type == 'boolean' %}\n {{ dbt.cast_bool_to_text(col.column) }}\n {% else %}\n {{ col.column }}\n {% endif %}\n as {{ cast_to }}) as {{ 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": 1722277883.272583, "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": 1722277883.272864, "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": 1722277883.272995, "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": 1722277883.276393, "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": 1722277883.279681, "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": 1722277883.279974, "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": 1722277883.280215, "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": 1722277883.281066, "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": 1722277883.281279, "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": 1722277883.28144, "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": 1722277883.281624, "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": 1722277883.281784, "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": 1722277883.2819462, "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": 1722277883.282111, "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": 1722277883.282482, "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": 1722277883.282712, "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": 1722277883.283081, "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": 1722277883.283603, "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": 1722277883.283936, "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": 1722277883.284256, "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": 1722277883.2876182, "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": 1722277883.287966, "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": 1722277883.2886689, "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": 1722277883.289355, "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": 1722277883.2898371, "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": 1722277883.290987, "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": 1722277883.292419, "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": 1722277883.293482, "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": 1722277883.2942772, "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": 1722277883.2947369, "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": 1722277883.295434, "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": 1722277883.2962089, "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": 1722277883.296649, "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": 1722277883.296834, "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": 1722277883.297219, "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": 1722277883.297778, "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": 1722277883.29823, "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": 1722277883.298835, "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": 1722277883.299378, "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": 1722277883.299513, "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": 1722277883.299649, "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": 1722277883.2997818, "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": 1722277883.300294, "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": 1722277883.301066, "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": 1722277883.3021429, "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": 1722277883.30241, "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": 1722277883.3029602, "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": 1722277883.303722, "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": 1722277883.304079, "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": 1722277883.304223, "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": 1722277883.3044128, "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": 1722277883.3054478, "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": 1722277883.3064609, "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": 1722277883.307863, "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": 1722277883.30938, "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": 1722277883.31089, "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": 1722277883.31246, "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": 1722277883.31388, "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": 1722277883.315566, "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": 1722277883.316559, "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": 1722277883.317497, "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": 1722277883.3185139, "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": 1722277883.319826, "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] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('amazon_ads__advertised_product_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "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": 1722277883.321221, "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] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('amazon_ads__ad_group_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "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": 1722277883.322043, "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] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('amazon_ads__search_term_ad_keyword_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "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": 1722277883.323624, "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] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('amazon_ads__campaign_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_float", "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": 1722277883.325027, "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": 1722277883.326602, "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": 1722277883.327971, "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] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('amazon_ads__targeting_keyword_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "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": 1722277883.329709, "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": 1722277883.331024, "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": 1722277883.332052, "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": 1722277883.332396, "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": 1722277883.332544, "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": 1722277883.332736, "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": 1722277883.3342621, "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": 1722277883.335232, "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": 1722277883.336253, "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": 1722277883.33744, "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": 1722277883.340159, "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": 1722277883.34137, "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": 1722277883.3423429, "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": 1722277883.347649, "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": 1722277883.348303, "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": 1722277883.3491359, "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": 1722277883.349826, "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": 1722277883.3505092, "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": 1722277883.3513541, "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": 1722277883.351525, "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": 1722277883.351629, "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": 1722277883.354572, "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": 1722277883.362184, "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": 1722277883.36232, "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": 1722277883.362397, "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": 1722277883.3629491, "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": 1722277883.364502, "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": 1722277883.36482, "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": 1722277883.365084, "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": 1722277883.365342, "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": 1722277883.365647, "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": 1722277883.365835, "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": 1722277883.3660312, "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": 1722277883.366376, "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": 1722277883.366522, "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": 1722277883.3667111, "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": 1722277883.367914, "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": 1722277883.368046, "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": 1722277883.368167, "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": 1722277883.368345, "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": 1722277883.368454, "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": 1722277883.3687449, "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": 1722277883.36909, "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": 1722277883.369232, "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": 1722277883.369419, "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": 1722277883.377867, "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": 1722277883.380001, "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": 1722277883.406403, "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": 1722277883.4081101, "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": 1722277883.409023, "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": 1722277883.4097762, "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": 1722277883.410539, "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": 1722277883.4112902, "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": 1722277883.411883, "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": 1722277883.4121249, "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": 1722277883.412501, "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": 1722277883.413339, "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": 1722277883.4137468, "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": 1722277883.4139478, "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": 1722277883.414465, "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": 1722277883.414797, "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": 1722277883.415377, "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": 1722277883.4171038, "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": 1722277883.417711, "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": 1722277883.418777, "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": 1722277883.4190679, "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": 1722277883.419277, "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": 1722277883.419661, "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": 1722277883.4198542, "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": 1722277883.420714, "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": 1722277883.4209259, "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": 1722277883.421152, "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": 1722277883.421355, "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": 1722277883.421559, "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": 1722277883.421758, "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": 1722277883.421958, "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": 1722277883.4221509, "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": 1722277883.422559, "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": 1722277883.422702, "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": 1722277883.4228458, "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": 1722277883.422953, "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": 1722277883.423059, "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": 1722277883.423161, "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": 1722277883.423408, "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": 1722277883.423897, "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": 1722277883.424051, "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": 1722277883.424406, "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": 1722277883.424667, "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": 1722277883.424812, "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": 1722277883.425468, "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": 1722277883.425619, "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": 1722277883.425766, "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": 1722277883.425907, "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": 1722277883.426046, "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": 1722277883.426184, "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": 1722277883.426317, "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": 1722277883.4264581, "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": 1722277883.426857, "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": 1722277883.4270349, "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": 1722277883.427233, "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": 1722277883.4274921, "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": 1722277883.4276621, "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": 1722277883.427841, "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": 1722277883.4282508, "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": 1722277883.428389, "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": 1722277883.428531, "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": 1722277883.4287071, "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": 1722277883.428881, "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": 1722277883.42902, "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": 1722277883.4292648, "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": 1722277883.431935, "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": 1722277883.432189, "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": 1722277883.4324422, "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": 1722277883.432898, "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": 1722277883.433281, "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": 1722277883.4338582, "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": 1722277883.434114, "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": 1722277883.434471, "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": 1722277883.434809, "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": 1722277883.434937, "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": 1722277883.435067, "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": 1722277883.435195, "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": 1722277883.4355369, "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": 1722277883.435744, "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": 1722277883.435919, "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": 1722277883.436129, "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": 1722277883.4390368, "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": 1722277883.439322, "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": 1722277883.439716, "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": 1722277883.4399989, "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": 1722277883.440402, "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": 1722277883.440757, "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": 1722277883.440923, "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": 1722277883.441134, "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": 1722277883.4414048, "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": 1722277883.441848, "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": 1722277883.4420538, "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": 1722277883.4421911, "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": 1722277883.442324, "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": 1722277883.442679, "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": 1722277883.4433658, "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": 1722277883.443557, "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": 1722277883.443746, "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": 1722277883.443935, "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": 1722277883.44414, "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": 1722277883.444324, "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": 1722277883.444583, "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": 1722277883.444772, "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": 1722277883.445011, "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": 1722277883.44544, "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": 1722277883.4456162, "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": 1722277883.445759, "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": 1722277883.4458618, "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": 1722277883.447119, "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": 1722277883.447317, "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": 1722277883.447465, "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": 1722277883.44769, "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": 1722277883.447874, "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": 1722277883.4480572, "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": 1722277883.4482229, "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": 1722277883.448457, "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": 1722277883.4487958, "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": 1722277883.4495091, "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": 1722277883.449697, "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": 1722277883.449836, "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": 1722277883.4499671, "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": 1722277883.450176, "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": 1722277883.450315, "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": 1722277883.450449, "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": 1722277883.450583, "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": 1722277883.451082, "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": 1722277883.451211, "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": 1722277883.451403, "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": 1722277883.4515998, "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": 1722277883.4517398, "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": 1722277883.451951, "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": 1722277883.452163, "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": 1722277883.4530969, "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": 1722277883.4546711, "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": 1722277883.4550369, "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": 1722277883.455182, "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": 1722277883.4553752, "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": 1722277883.457144, "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": 1722277883.458127, "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": 1722277883.459732, "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": 1722277883.461049, "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": 1722277883.462856, "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": 1722277883.463776, "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": 1722277883.4648, "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": 1722277883.465918, "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": 1722277883.467724, "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": 1722277883.469234, "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": 1722277883.469619, "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": 1722277883.470572, "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": 1722277883.470738, "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": 1722277883.470898, "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": 1722277883.471056, "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": 1722277883.471199, "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": 1722277883.471355, "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": 1722277883.47218, "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": 1722277883.472806, "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": 1722277883.474164, "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": 1722277883.474401, "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": 1722277883.474648, "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": 1722277883.47488, "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": 1722277883.475111, "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": 1722277883.4753642, "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": 1722277883.475619, "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": 1722277883.475849, "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": 1722277883.476164, "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": 1722277883.476266, "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": 1722277883.476365, "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": 1722277883.476463, "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": 1722277883.476819, "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": 1722277883.4775, "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": 1722277883.4785368, "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": 1722277883.479095, "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": 1722277883.479856, "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": 1722277883.480321, "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": 1722277883.480454, "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": 1722277883.480581, "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": 1722277883.480706, "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": 1722277883.480839, "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": 1722277883.483897, "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": 1722277883.484061, "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": 1722277883.484223, "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": 1722277883.4843788, "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": 1722277883.486125, "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": 1722277883.487095, "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": 1722277883.48723, "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": 1722277883.487499, "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": 1722277883.487787, "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": 1722277883.487915, "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": 1722277883.4880378, "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": 1722277883.488158, "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": 1722277883.488279, "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": 1722277883.4887638, "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": 1722277883.4893088, "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": 1722277883.489792, "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": 1722277883.489988, "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": 1722277883.490203, "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": 1722277883.4904552, "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": 1722277883.491572, "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": 1722277883.495633, "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": 1722277883.496026, "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": 1722277883.496407, "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": 1722277883.498231, "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": 1722277883.4988182, "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": 1722277883.499446, "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": 1722277883.4996212, "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": 1722277883.4997818, "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": 1722277883.499956, "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": 1722277883.500113, "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": 1722277883.500274, "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": 1722277883.5012622, "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": 1722277883.502817, "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": 1722277883.503553, "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": 1722277883.503714, "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": 1722277883.503871, "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": 1722277883.5040278, "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": 1722277883.5041862, "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": 1722277883.504363, "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": 1722277883.50461, "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": 1722277883.5047119, "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": 1722277883.50481, "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": 1722277883.505427, "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": 1722277883.506832, "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": 1722277883.5070028, "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": 1722277883.507814, "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": 1722277883.511466, "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": 1722277883.516068, "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": 1722277883.517477, "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": 1722277883.517817, "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": 1722277883.517965, "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": 1722277883.5181599, "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": 1722277883.51849, "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": 1722277883.5185988, "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": 1722277883.518708, "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": 1722277883.518809, "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": 1722277883.5189068, "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": 1722277883.519159, "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": 1722277883.51926, "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": 1722277883.519356, "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": 1722277883.519736, "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": 1722277883.520112, "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": 1722277887.925638, "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": 1722277887.923599, "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": 1722277883.5209029, "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": 1722277883.521, "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": 1722277883.521099, "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": 1722277883.521266, "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": 1722277887.9260118, "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'] -%}\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 {%- do final_fields_superset.update({account_passthrough_metric_value: account_passthrough_metric_value}) -%}\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 {%- do final_fields_superset.update({campaign_passthrough_metric_value: campaign_passthrough_metric_value}) -%}\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 {%- do final_fields_superset.update({ad_group_passthrough_metric_value: ad_group_passthrough_metric_value}) -%}\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 {%- do final_fields_superset.update({ad_field: ad_field})-%}\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 {%- do final_fields_superset.update({ad_field: ad_field})-%}\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 {%- 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 {%- do final_fields_superset.update({keyword_field: keyword_field})-%}\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 {%- 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 {%- do final_fields_superset.update({search_field: search_field})-%}\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 != 'spend' -%}\n cast({{ final_fields_superset[field] }} as {{ dbt.type_int() }}) as {{ field }}\n\n {% elif field == 'spend' -%}\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": 1722277887.925256, "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": 1722277887.924381, "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": 1722277883.534228, "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\": \"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{{ fivetran_utils.add_pass_through_columns(columns, var('apple_search_ads__ad_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_numeric", "macro.dbt.type_string", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1722277883.535467, "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\": \"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{{ fivetran_utils.add_pass_through_columns(columns, var('apple_search_ads__search_term_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_numeric", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1722277883.537795, "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\": \"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{{ fivetran_utils.add_pass_through_columns(columns, var('apple_search_ads__keyword_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_numeric", "macro.dbt.type_string", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1722277883.5388281, "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\": \"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{{ fivetran_utils.add_pass_through_columns(columns, var('apple_search_ads__campaign_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_numeric", "macro.dbt.type_string", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1722277883.539841, "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": 1722277883.540677, "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": 1722277883.541609, "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\": \"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{{ fivetran_utils.add_pass_through_columns(columns, var('apple_search_ads__ad_group_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_numeric", "macro.dbt.type_string", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1722277883.542635, "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": 1722277883.543307, "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": 1722277883.544338, "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": 1722277883.54566, "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": 1722277883.547616, "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": 1722277883.5479748, "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": 1722277883.548126, "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": 1722277883.548318, "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] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('pinterest__keyword_report_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": 1722277883.549919, "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] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('pinterest__pin_promotion_report_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_numeric", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1722277883.5512419, "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] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('pinterest__campaign_report_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": 1722277883.552555, "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": 1722277883.553689, "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": 1722277883.554873, "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] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('pinterest__ad_group_report_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": 1722277883.556276, "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": 1722277883.557478, "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] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('pinterest__advertiser_report_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": 1722277883.558502, "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": 1722277883.560568, "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_numeric()},\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\": \"shares\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"spend\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"stat_time_hour\", \"datatype\": dbt.type_timestamp()},\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{{ fivetran_utils.add_pass_through_columns(columns, var('tiktok_ads__ad_group_hourly_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_numeric", "macro.dbt.type_float", "macro.dbt.type_timestamp", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1722277883.5633101, "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": 1722277883.565113, "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": 1722277883.565871, "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": 1722277883.566226, "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": 1722277883.566369, "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": 1722277883.566559, "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_numeric()},\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\": \"shares\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"spend\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"stat_time_hour\", \"datatype\": dbt.type_timestamp()},\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{{ fivetran_utils.add_pass_through_columns(columns, var('tiktok_ads__campaign_hourly_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_numeric", "macro.dbt.type_float", "macro.dbt.type_timestamp", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1722277883.569332, "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": 1722277883.570466, "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_numeric()},\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\": \"shares\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"spend\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"stat_time_hour\", \"datatype\": dbt.type_timestamp()},\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{{ fivetran_utils.add_pass_through_columns(columns, var('tiktok_ads__ad_hourly_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_numeric", "macro.dbt.type_float", "macro.dbt.type_timestamp", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1722277883.5732, "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] %}\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": 1722277883.5744178, "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": 1722277883.576361, "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": 1722277883.577578, "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": 1722277883.579246, "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": 1722277883.5801759, "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] %}\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": 1722277883.581006, "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] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('snapchat_ads__campaign_hourly_report_passthrough_metrics')) }}\n\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"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1722277883.5830982, "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": 1722277883.583843, "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": 1722277883.5846741, "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] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('snapchat_ads__ad_hourly_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_numeric", "macro.dbt.type_timestamp", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1722277883.586826, "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] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('snapchat_ads__ad_squad_hourly_passthrough_metrics')) }}\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"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1722277883.588925, "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": 1722277883.5896719, "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": 1722277883.59023, "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": 1722277883.591064, "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": 1722277883.5920792, "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": 1722277883.592427, "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": 1722277883.592577, "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": 1722277883.592778, "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": 1722277883.593432, "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__line_item_keywords_report_passthrough_metrics')) }}\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"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1722277883.5945458, "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": 1722277883.5948951, "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": 1722277883.59504, "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": 1722277883.595229, "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__line_item_report_passthrough_metrics')) }}\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"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1722277883.5962508, "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__campaign_report_passthrough_metrics')) }}\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"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1722277883.5972748, "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": 1722277883.6006558, "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": 1722277883.602127, "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": 1722277883.604156, "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": 1722277883.604943, "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": 1722277883.605576, "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__promoted_tweet_report_passthrough_metrics')) }}\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"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1722277883.606443, "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 {% 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": 1722277883.6078122, "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.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_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.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.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.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.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.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": 1722277887.9932559, "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": 1722277887.993835, "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": 1722277887.9943302, "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": 1722277887.9947882, "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": 1722277887.995117, "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": 1722277887.995588, "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": 1722277887.997561, "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": 1722277887.9982562, "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": 1722277887.998909, "group": null}}, "groups": {}, "selectors": {}, "disabled": {"model.twitter_ads.twitter_ads__keyword_report": [{"database": "postgres", "schema": "ad_reporting_docs_twitter_ads", "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": "d3e5848adbba8d34c13578d4df1c7c1e47df13b7272355cc742845d2e7761db6"}, "config": {"enabled": false, "alias": null, "schema": "twitter_ads", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "twitter_ads://models/twitter.yml", "build_path": null, "unrendered_config": {"schema": "twitter_ads", "materialized": "table", "enabled": false}, "created_at": 1722277887.257893, "relation_name": "\"postgres\".\"ad_reporting_docs_twitter_ads\".\"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 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\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.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": "postgres", "schema": "ad_reporting_docs_twitter_ads_source", "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": "1e6297d8960ebf7e66fd283aeca405af30461f05c18f3e68d3a0040e895bb519"}, "config": {"enabled": false, "alias": null, "schema": "twitter_ads_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "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": "twitter_ads_source", "enabled": false}, "created_at": 1722277888.447902, "relation_name": "\"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"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 {{ fivetran_utils.fill_pass_through_columns('twitter_ads__line_item_keywords_report_passthrough_metrics') }}\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.fivetran_utils.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": "postgres", "schema": "ad_reporting_docs_twitter_ads_source", "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": "twitter_ads_source", "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": "twitter_ads_source", "enabled": false}, "created_at": 1722277886.905843, "relation_name": "\"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"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": "postgres", "schema": "ad_reporting_docs", "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": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": false}, "patch_path": null, "unrendered_config": {"enabled": false}, "relation_name": "\"postgres\".\"ad_reporting_docs\".\"twitter_line_item_keywords_report_data\"", "created_at": 1722277888.590442}]}, "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.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.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.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.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.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.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_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_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_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_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_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_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__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_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__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_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__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_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_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_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_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.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": ["model.facebook_ads_source.stg_facebook_ads__basic_ad_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__creative_history_tmp": ["source.facebook_ads_source.facebook_ads.creative_history"], "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.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.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.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.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.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.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.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.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.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.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_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__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_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__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_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.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": ["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__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__creative_history_tmp": ["model.facebook_ads_source.stg_facebook_ads__creative_history"], "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.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.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.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.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_docs_ad_reporting", "database": "postgres", "relation_name": "\"postgres\".\"ad_reporting_docs_ad_reporting\".\"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": 1722277888.026437, "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.6", "generated_at": "2024-09-17T18:25:07.678413Z", "invocation_id": "a5634668-738f-4a53-819e-1795b5ea9085", "env": {}, "project_name": "ad_reporting_integration_tests", "project_id": "9bf57d857f8bb3abf75f1b334ad30f3c", "user_id": "8929baf0-9bc1-477e-9a57-eb8b0db4da62", "send_anonymous_usage_stats": true, "adapter_type": "postgres"}, "nodes": {"seed.ad_reporting_integration_tests.twitter_line_item_history_data": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": true}, "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','postgres') else false }}"}, "created_at": 1726597444.119992, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"twitter_line_item_history_data\"", "raw_code": "", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.amazon_ads_campaign_history_data": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": true}, "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','postgres') else false }}"}, "created_at": 1726597444.123286, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"amazon_ads_campaign_history_data\"", "raw_code": "", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.amazon_ads_ad_group_level_report_data": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": true}, "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','postgres') else false }}"}, "created_at": 1726597444.124486, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"amazon_ads_ad_group_level_report_data\"", "raw_code": "", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.google_ads_keyword_stats_data": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": true}, "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','postgres') 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": 1726597444.12575, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"google_ads_keyword_stats_data\"", "raw_code": "", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.linkedin_ad_campaign_history_data": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": true}, "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','postgres') else false }}", "column_types": {"created_time": "timestamp", "last_modified_time": "timestamp", "account_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1726597444.1278222, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"linkedin_ad_campaign_history_data\"", "raw_code": "", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.pinterest_keyword_report_data": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": "46fc926a1182c51ea670ec916f3a86dfa2f20d5553227275682310462caaa849"}, "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": true}, "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','postgres') 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": 1726597444.129121, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"pinterest_keyword_report_data\"", "raw_code": "", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.reddit_ads_account_report_data": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": true}, "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','postgres') else false }}", "column_types": {"account_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1726597444.130392, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"reddit_ads_account_report_data\"", "raw_code": "", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.twitter_line_item_report_data": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": true}, "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','postgres') else false }}"}, "created_at": 1726597444.1315851, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"twitter_line_item_report_data\"", "raw_code": "", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.microsoft_ads_keyword_performance_daily_report_data": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": "24aab796f90b4c8d3376f138913e0070b2295af6744e8aeef1a5a68b06c4f32b"}, "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": true}, "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','postgres') 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": 1726597444.132851, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"microsoft_ads_keyword_performance_daily_report_data\"", "raw_code": "", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.amazon_ads_ad_group_history_data": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": true}, "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','postgres') else false }}"}, "created_at": 1726597444.134033, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"amazon_ads_ad_group_history_data\"", "raw_code": "", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.facebook_ads_ad_history_data": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": true}, "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','postgres') 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": 1726597444.135176, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"facebook_ads_ad_history_data\"", "raw_code": "", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.amazon_ads_campaign_level_report_data": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": "cbc70c680495e7d44578ce6d3fd1b457ee27b6093e06d6ed5f69e8ef643ca23c"}, "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": true}, "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','postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "campaign_budget_amount": "float", "click_through_rate": "float"}}, "created_at": 1726597444.136356, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"amazon_ads_campaign_level_report_data\"", "raw_code": "", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.pinterest_ad_group_report_data": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": "6451df695a92aca87f55fdc197110c9e91d5b1663808905afa2f031527fa3947"}, "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": true}, "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','postgres') 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": 1726597444.137588, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"pinterest_ad_group_report_data\"", "raw_code": "", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.apple_search_campaign_history_data": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": true}, "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','postgres') else false }}", "column_types": {"modification_time": "timestamp", "start_time": "timestamp", "end_time": "timestamp"}}, "created_at": 1726597444.138864, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"apple_search_campaign_history_data\"", "raw_code": "", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.twitter_account_report_data": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": true}, "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','postgres') else false }}"}, "created_at": 1726597444.140008, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"twitter_account_report_data\"", "raw_code": "", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.reddit_ads_campaign_data": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": true}, "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','postgres') else false }}", "column_types": {"id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "account_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1726597444.141206, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"reddit_ads_campaign_data\"", "raw_code": "", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.linkedin_ad_creative_history_data": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": true}, "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','postgres') 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": 1726597444.142422, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"linkedin_ad_creative_history_data\"", "raw_code": "", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.snapchat_ad_squad_history_data": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": true}, "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','postgres') else false }}"}, "created_at": 1726597444.1436532, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"snapchat_ad_squad_history_data\"", "raw_code": "", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.twitter_campaign_history_data": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": true}, "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','postgres') else false }}"}, "created_at": 1726597444.144779, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"twitter_campaign_history_data\"", "raw_code": "", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.apple_search_ad_group_history_data": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": true}, "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','postgres') else false }}", "column_types": {"modification_time": "timestamp", "start_time": "timestamp", "end_time": "timestamp"}}, "created_at": 1726597444.145953, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"apple_search_ad_group_history_data\"", "raw_code": "", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.linkedin_ad_campaign_group_history_data": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": true}, "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','postgres') else false }}", "column_types": {"created_time": "timestamp", "last_modified_time": "timestamp", "account_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1726597444.147178, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"linkedin_ad_campaign_group_history_data\"", "raw_code": "", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.pinterest_advertiser_report_data": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": "d1a7a977ede788e2610dc21decfb57c226253807e9780784d17a06175f9adef8"}, "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": true}, "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','postgres') 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": 1726597444.148431, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"pinterest_advertiser_report_data\"", "raw_code": "", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.amazon_ads_product_ad_history_data": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": true}, "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','postgres') else false }}"}, "created_at": 1726597444.1496608, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"amazon_ads_product_ad_history_data\"", "raw_code": "", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.google_ads_campaign_stats_data": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": true}, "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','postgres') 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": 1726597444.1508539, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"google_ads_campaign_stats_data\"", "raw_code": "", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.reddit_ads_ad_data": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": true}, "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','postgres') 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": 1726597444.1520882, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"reddit_ads_ad_data\"", "raw_code": "", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.microsoft_ads_account_history_data": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": true}, "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','postgres') else false }}", "column_types": {"name": "{{ 'string' if target.name in ['bigquery','spark', 'databricks'] else 'varchar' }}"}}, "created_at": 1726597444.1534002, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"microsoft_ads_account_history_data\"", "raw_code": "", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.microsoft_ads_account_performance_daily_report_data": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": "38506b413bb9edde36b2b1ab800847a06cddd5205317dbcd351ae3b0eb730bc2"}, "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": true}, "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','postgres') 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": 1726597444.154698, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"microsoft_ads_account_performance_daily_report_data\"", "raw_code": "", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.tiktok_ad_history_data": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": true}, "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','postgres') else false }}"}, "created_at": 1726597444.1558661, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"tiktok_ad_history_data\"", "raw_code": "", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.amazon_ads_advertised_product_report_data": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": true}, "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','postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "campaign_budget_amount": "float", "click_through_rate": "float"}}, "created_at": 1726597444.157059, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"amazon_ads_advertised_product_report_data\"", "raw_code": "", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.facebook_ads_creative_history_data": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": true}, "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','postgres') else false }}", "column_types": {"page_link": "{{ 'string' if target.name in ['bigquery','spark', 'databricks'] else 'varchar' }}", "template_page_link": "{{ 'string' if target.name in ['bigquery','spark', 'databricks'] else 'varchar' }}", "id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "account_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}"}}, "created_at": 1726597444.158283, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"facebook_ads_creative_history_data\"", "raw_code": "", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.tiktok_adgroup_report_hourly_data": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": "8be9d24fc395101fc03be9b0e38f0e87baf450c262ce29af544fd1fae72c203a"}, "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": true}, "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','postgres') else false }}"}, "created_at": 1726597444.159455, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"tiktok_adgroup_report_hourly_data\"", "raw_code": "", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.twitter_promoted_tweet_history_data": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": true}, "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','postgres') else false }}", "column_types": {"tweet_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1726597444.1606662, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"twitter_promoted_tweet_history_data\"", "raw_code": "", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.amazon_ads_search_term_ad_keyword_report_data": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": true}, "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','postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "campaign_budget_amount": "float", "keyword_bid": "float"}}, "created_at": 1726597444.1618712, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"amazon_ads_search_term_ad_keyword_report_data\"", "raw_code": "", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.apple_search_organization_data": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": true}, "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','postgres') else false }}"}, "created_at": 1726597444.163042, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"apple_search_organization_data\"", "raw_code": "", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.tiktok_campaign_history_data": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": true}, "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','postgres') else false }}"}, "created_at": 1726597444.1641579, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"tiktok_campaign_history_data\"", "raw_code": "", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.tiktok_advertiser_data": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": true}, "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','postgres') else false }}"}, "created_at": 1726597444.165322, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"tiktok_advertiser_data\"", "raw_code": "", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.twitter_promoted_tweet_report_data": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": true}, "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','postgres') else false }}"}, "created_at": 1726597444.166445, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"twitter_promoted_tweet_report_data\"", "raw_code": "", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.google_ads_ad_group_stats_data": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": true}, "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','postgres') 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": 1726597444.167637, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"google_ads_ad_group_stats_data\"", "raw_code": "", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.google_ads_ad_stats_data": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": "7aa7a5c05d68344ef454636b9f70e4e69869c5d78f677b20df600e5ac2ddcb25"}, "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": true}, "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','postgres') 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": 1726597444.1689, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"google_ads_ad_stats_data\"", "raw_code": "", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.twitter_campaign_report_data": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": true}, "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','postgres') else false }}"}, "created_at": 1726597444.1700742, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"twitter_campaign_report_data\"", "raw_code": "", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.google_ads_account_history_data": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": true}, "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','postgres') else false }}"}, "created_at": 1726597444.171222, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"google_ads_account_history_data\"", "raw_code": "", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.amazon_ads_profile_data": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": true}, "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','postgres') else false }}"}, "created_at": 1726597444.172304, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"amazon_ads_profile_data\"", "raw_code": "", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.facebook_ads_campaign_history_data": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": true}, "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','postgres') else false }}", "column_types": {"id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "account_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1726597444.173467, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"facebook_ads_campaign_history_data\"", "raw_code": "", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.pinterest_campaign_report_data": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": "40dc5b48841d732d7707801558e939abdbf2c0c333a2a4b6f76cd40d68f90f78"}, "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": true}, "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','postgres') 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": 1726597444.174804, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"pinterest_campaign_report_data\"", "raw_code": "", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.microsoft_ads_keyword_history_data": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": true}, "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','postgres') 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": 1726597444.1761658, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"microsoft_ads_keyword_history_data\"", "raw_code": "", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.twitter_tweet_url_data": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": true}, "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','postgres') else false }}", "column_types": {"tweet_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1726597444.1773922, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"twitter_tweet_url_data\"", "raw_code": "", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.apple_search_keyword_history_data": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": true}, "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','postgres') else false }}", "column_types": {"modification_time": "timestamp"}}, "created_at": 1726597444.178586, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"apple_search_keyword_history_data\"", "raw_code": "", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.reddit_ads_ad_group_data": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": true}, "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','postgres') 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": 1726597444.179787, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"reddit_ads_ad_group_data\"", "raw_code": "", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.pinterest_pin_promotion_history_data": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": "e70579f043f414f66202fc59604c4f9290377c8536d0e9ee937455fdc5881ccd"}, "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": true}, "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','postgres') 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": 1726597444.181013, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"pinterest_pin_promotion_history_data\"", "raw_code": "", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.pinterest_campaign_history_data": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": "6142bee4a77ce262922cdb7a68ce46f080a2df2bb66a804eecaaf62aa590e0d2"}, "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": true}, "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','postgres') 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": 1726597444.1823292, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"pinterest_campaign_history_data\"", "raw_code": "", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.microsoft_ads_search_performance_daily_report_data": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": "d511070057e0350bd6feeff317d9adf1fbe30690b615211738b3f2efc6e29133"}, "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": true}, "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','postgres') 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": 1726597444.18359, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"microsoft_ads_search_performance_daily_report_data\"", "raw_code": "", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.google_ads_campaign_history_data": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": true}, "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','postgres') 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": 1726597444.1848571, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"google_ads_campaign_history_data\"", "raw_code": "", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.linkedin_ad_analytics_by_creative_data": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": "9f74b7c0073147c015bcb8d7b69011f641f4276f4f22aa61c3b7dc3f39837527"}, "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": true}, "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','postgres') else false }}", "column_types": {"day": "timestamp", "external_website_conversions": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1726597444.1860778, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"linkedin_ad_analytics_by_creative_data\"", "raw_code": "", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.snapchat_ad_history_data": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": true}, "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','postgres') else false }}"}, "created_at": 1726597444.187279, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"snapchat_ad_history_data\"", "raw_code": "", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.facebook_ads_account_history_data": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": true}, "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','postgres') else false }}", "column_types": {"id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "name": "{{ 'string' if target.name in ['bigquery','spark', 'databricks'] else 'varchar' }}"}}, "created_at": 1726597444.1884758, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"facebook_ads_account_history_data\"", "raw_code": "", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.apple_search_campaign_report_data": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": true}, "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','postgres') else false }}"}, "created_at": 1726597444.189657, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"apple_search_campaign_report_data\"", "raw_code": "", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.google_ads_ad_group_history_data": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": true}, "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','postgres') 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": 1726597444.19085, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"google_ads_ad_group_history_data\"", "raw_code": "", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.pinterest_ad_group_history_data": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": "94d05fc7771cd0965df9d5983d4ff14704cf8d586b4b3db005852d2c120d5ffe"}, "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": true}, "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','postgres') 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": 1726597444.1920729, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"pinterest_ad_group_history_data\"", "raw_code": "", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.snapchat_campaign_history_data": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": true}, "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','postgres') else false }}"}, "created_at": 1726597444.1933591, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"snapchat_campaign_history_data\"", "raw_code": "", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.pinterest_keyword_history_data": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": "589c187cfa8845b5851700d6e10128a158fe860a55a4f4de7f83b1e92226bc9e"}, "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": true}, "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','postgres') 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": 1726597444.1945212, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"pinterest_keyword_history_data\"", "raw_code": "", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.facebook_ads_basic_ad_data": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": true}, "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','postgres') else false }}", "column_types": {"ad_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "account_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1726597444.195742, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"facebook_ads_basic_ad_data\"", "raw_code": "", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.tiktok_ad_report_hourly_data": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": "d69dcb9baa6015d02d6304146b4f3c6cab3fb75431c351636d9c9f65b5f7d911"}, "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": true}, "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','postgres') else false }}"}, "created_at": 1726597444.196914, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"tiktok_ad_report_hourly_data\"", "raw_code": "", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.microsoft_ads_ad_group_performance_daily_report_data": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": "384b5c5b4f318171a536391e3591a2d4833f4bafeef3ea7f20be82b1f04b1346"}, "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": true}, "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','postgres') 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": 1726597444.198157, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"microsoft_ads_ad_group_performance_daily_report_data\"", "raw_code": "", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.apple_search_search_term_report_data": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": true}, "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','postgres') else false }}"}, "created_at": 1726597444.1993558, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"apple_search_search_term_report_data\"", "raw_code": "", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.reddit_ads_account_data": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": true}, "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','postgres') else false }}", "column_types": {"id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1726597444.200471, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"reddit_ads_account_data\"", "raw_code": "", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.snapchat_ad_squad_hourly_report_data": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": "bfd35d6b8446668beead2ac4590a52d36815d55adf1dee4cde552a5538fc1725"}, "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": true}, "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','postgres') else false }}"}, "created_at": 1726597444.201601, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"snapchat_ad_squad_hourly_report_data\"", "raw_code": "", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.reddit_ads_ad_group_report_data": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": true}, "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','postgres') 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": 1726597444.202776, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"reddit_ads_ad_group_report_data\"", "raw_code": "", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.linkedin_ad_account_history_data": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": true}, "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','postgres') else false }}", "column_types": {"created_time": "timestamp", "last_modified_time": "timestamp"}}, "created_at": 1726597444.204108, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"linkedin_ad_account_history_data\"", "raw_code": "", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.twitter_account_history_data": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": true}, "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','postgres') else false }}", "column_types": {"name": "{{ 'string' if target.name in ['bigquery','spark', 'databricks'] else 'varchar' }}"}}, "created_at": 1726597444.205337, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"twitter_account_history_data\"", "raw_code": "", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.snapchat_creative_history_data": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": true}, "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','postgres') else false }}"}, "created_at": 1726597444.206474, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"snapchat_creative_history_data\"", "raw_code": "", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.linkedin_ad_analytics_by_campaign_data": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": true}, "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','postgres') else false }}", "column_types": {"day": "timestamp", "external_website_conversions": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1726597444.207896, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"linkedin_ad_analytics_by_campaign_data\"", "raw_code": "", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.google_ads_ad_history_data": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": true}, "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','postgres') 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": 1726597444.20947, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"google_ads_ad_history_data\"", "raw_code": "", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.facebook_ads_ad_set_history_data": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": true}, "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','postgres') 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": 1726597444.211006, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"facebook_ads_ad_set_history_data\"", "raw_code": "", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.apple_search_keyword_report_data": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": true}, "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','postgres') else false }}"}, "created_at": 1726597444.212162, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"apple_search_keyword_report_data\"", "raw_code": "", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.snapchat_ad_hourly_report_data": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": "1f2f808727dc7d9d45ba0ac10bba717da6454110d8fb242ee54986b8b60d7f9d"}, "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": true}, "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','postgres') else false }}", "column_types": {"date": "timestamp"}}, "created_at": 1726597444.213272, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"snapchat_ad_hourly_report_data\"", "raw_code": "", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.amazon_ads_targeting_keyword_report_data": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": true}, "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','postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "campaign_budget_amount": "float", "click_through_rate": "float", "keyword_bid": "float"}}, "created_at": 1726597444.214423, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"amazon_ads_targeting_keyword_report_data\"", "raw_code": "", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.microsoft_ads_ad_performance_daily_report_data": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": "026f9dd8b52f39f82551e9b632dc4ee00ef44df83c0227d076ecb260025a451a"}, "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": true}, "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','postgres') 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": 1726597444.215646, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"microsoft_ads_ad_performance_daily_report_data\"", "raw_code": "", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.twitter_tweet_data": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": true}, "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','postgres') else false }}"}, "created_at": 1726597444.216761, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"twitter_tweet_data\"", "raw_code": "", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.snapchat_campaign_hourly_report_data": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": "30cfac35c4fb0c216f8992ee23e13c2ed9322373ef62316ca9b5876952444295"}, "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": true}, "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','postgres') else false }}"}, "created_at": 1726597444.217833, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"snapchat_campaign_hourly_report_data\"", "raw_code": "", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.microsoft_ads_ad_history_data": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": true}, "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','postgres') 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": 1726597444.219403, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"microsoft_ads_ad_history_data\"", "raw_code": "", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.twitter_line_item_keywords_report_data": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": true}, "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','postgres') else false }}"}, "created_at": 1726597444.220738, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"twitter_line_item_keywords_report_data\"", "raw_code": "", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.snapchat_ad_account_history_data": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": true}, "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','postgres') else false }}"}, "created_at": 1726597444.2218728, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"snapchat_ad_account_history_data\"", "raw_code": "", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.microsoft_ads_campaign_performance_daily_report_data": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": "2defb0e38c65b2bf62ce5cb269c2f539437885533b53d7a3174d1cc04e2c7efe"}, "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": true}, "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','postgres') 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": 1726597444.2231538, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"microsoft_ads_campaign_performance_daily_report_data\"", "raw_code": "", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.google_ads_ad_group_criterion_history_data": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": true}, "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','postgres') 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": 1726597444.224573, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"google_ads_ad_group_criterion_history_data\"", "raw_code": "", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.amazon_ads_portfolio_history_data": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": true}, "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','postgres') else false }}"}, "created_at": 1726597444.225781, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"amazon_ads_portfolio_history_data\"", "raw_code": "", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.apple_search_ad_report_data": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": true}, "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','postgres') else false }}"}, "created_at": 1726597444.2269702, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"apple_search_ad_report_data\"", "raw_code": "", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.amazon_ads_keyword_history_data": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": true}, "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','postgres') else false }}"}, "created_at": 1726597444.228068, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"amazon_ads_keyword_history_data\"", "raw_code": "", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.reddit_ads_campaign_report_data": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": true}, "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','postgres') else false }}", "column_types": {"account_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1726597444.229194, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"reddit_ads_campaign_report_data\"", "raw_code": "", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.google_ads_account_stats_data": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": true}, "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','postgres') else false }}"}, "created_at": 1726597444.2303202, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"google_ads_account_stats_data\"", "raw_code": "", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.pinterest_advertiser_history_data": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": "d7b9b56c1e3e73463bafe6d686bad8fb08107f33e3dbc22c5032c0f355a60b6c"}, "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": true}, "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','postgres') 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": 1726597444.231575, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"pinterest_advertiser_history_data\"", "raw_code": "", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.snapchat_creative_url_tag_history_data": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": true}, "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','postgres') else false }}"}, "created_at": 1726597444.232768, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"snapchat_creative_url_tag_history_data\"", "raw_code": "", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.tiktok_campaign_report_hourly_data": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": "e142bf0e3037365792c797d4dcbc3c3ec4621f1802fae83b3ef5a4f05630f162"}, "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": true}, "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','postgres') else false }}"}, "created_at": 1726597444.233875, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"tiktok_campaign_report_hourly_data\"", "raw_code": "", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.microsoft_ads_campaign_history_data": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": true}, "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','postgres') else false }}"}, "created_at": 1726597444.2349849, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"microsoft_ads_campaign_history_data\"", "raw_code": "", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.reddit_ads_ad_report_data": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": true}, "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','postgres') else false }}", "column_types": {"ad_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "account_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1726597444.236126, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"reddit_ads_ad_report_data\"", "raw_code": "", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.pinterest_pin_promotion_report_data": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": "adef7939173c1809f516a7cf739b697eb875210228e21a1cbb52bbdee7dc4ce4"}, "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": true}, "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','postgres') 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": 1726597444.237382, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"pinterest_pin_promotion_report_data\"", "raw_code": "", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.apple_search_ad_group_report_data": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": true}, "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','postgres') else false }}"}, "created_at": 1726597444.238556, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"apple_search_ad_group_report_data\"", "raw_code": "", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.microsoft_ads_ad_group_history_data": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": true}, "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','postgres') else false }}", "column_types": {"id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1726597444.2396958, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"microsoft_ads_ad_group_history_data\"", "raw_code": "", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.apple_search_ad_history_data": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": true}, "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','postgres') else false }}", "column_types": {"creation_time": "timestamp", "modification_time": "timestamp"}}, "created_at": 1726597444.240876, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"apple_search_ad_history_data\"", "raw_code": "", "depends_on": {"macros": []}}, "seed.ad_reporting_integration_tests.tiktok_adgroup_history_data": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": true}, "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','postgres') else false }}"}, "created_at": 1726597444.242063, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"tiktok_adgroup_history_data\"", "raw_code": "", "depends_on": {"macros": []}}, "model.microsoft_ads_source.stg_microsoft_ads__account_daily_report": {"database": "postgres", "schema": "ad_reporting_integration_tests_7_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": "23c7e5e4ec6c08d32e0f8509f27d9850381ed63a01ffe7871a41a883b7a8c0d2"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "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": 1726597447.2857769, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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 clicks, \n impressions,\n spend\n \n {{ fivetran_utils.fill_pass_through_columns('microsoft_ads__account_passthrough_metrics') }}\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.fivetran_utils.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\".\"ad_reporting_integration_tests_7_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\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 clicks, \n impressions,\n 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.microsoft_ads_source.stg_microsoft_ads__search_daily_report": {"database": "postgres", "schema": "ad_reporting_integration_tests_7_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": "3a16ffdf879d27e954ff4e0e50c90b36fa01b537a591f58b0b0db1fa036df2a6"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "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": 1726597447.294631, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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 clicks,\n impressions,\n spend\n\n {{ fivetran_utils.fill_pass_through_columns('microsoft_ads__search_passthrough_metrics') }}\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.fivetran_utils.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\".\"ad_reporting_integration_tests_7_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\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 clicks,\n impressions,\n 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.microsoft_ads_source.stg_microsoft_ads__keyword_daily_report": {"database": "postgres", "schema": "ad_reporting_integration_tests_7_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": "77c0d9fb82c221f5b260517069f4b815931889faff869ce24047d3498f87c3d5"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "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": 1726597447.293509, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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 clicks,\n impressions,\n spend\n\n {{ fivetran_utils.fill_pass_through_columns('microsoft_ads__keyword_passthrough_metrics') }}\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.fivetran_utils.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\".\"ad_reporting_integration_tests_7_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 \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 clicks,\n impressions,\n 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.microsoft_ads_source.stg_microsoft_ads__campaign_daily_report": {"database": "postgres", "schema": "ad_reporting_integration_tests_7_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": "0ac2c41b7c509fd4752e982ce9da07312cf5e4bc8dd6e1157413d23a3b8e7d71"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "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": 1726597447.29159, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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 clicks,\n impressions,\n spend\n\n {{ fivetran_utils.fill_pass_through_columns('microsoft_ads__campaign_passthrough_metrics') }}\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.fivetran_utils.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\".\"ad_reporting_integration_tests_7_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 cast(null as TEXT) as \n \n budget_name\n \n , \n cast(null as TEXT) as \n \n budget_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 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 clicks,\n impressions,\n 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.microsoft_ads_source.stg_microsoft_ads__keyword_history": {"database": "postgres", "schema": "ad_reporting_integration_tests_7_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": 1726597447.292495, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "a6b93da9b49e9a795ec8811a534dbf851450826140531c7eee7ce9df8575f818"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "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": 1726597447.287615, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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 clicks,\n impressions,\n spend\n\n {{ fivetran_utils.fill_pass_through_columns('microsoft_ads__ad_group_passthrough_metrics') }}\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.fivetran_utils.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\".\"ad_reporting_integration_tests_7_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\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 clicks,\n impressions,\n 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.microsoft_ads_source.stg_microsoft_ads__ad_group_history": {"database": "postgres", "schema": "ad_reporting_integration_tests_7_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": 1726597447.286741, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.288662, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "9c9a1867561d16a4fedc0b693a2be1192d1d348a4954d449c852e5f4c5a059c9"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "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": 1726597447.289644, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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 clicks,\n impressions,\n spend\n\n {{ fivetran_utils.fill_pass_through_columns('microsoft_ads__ad_passthrough_metrics') }}\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.fivetran_utils.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\".\"ad_reporting_integration_tests_7_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\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 clicks,\n impressions,\n 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.microsoft_ads_source.stg_microsoft_ads__account_history": {"database": "postgres", "schema": "ad_reporting_integration_tests_7_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": 1726597447.284558, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.290475, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597444.466538, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7\".\"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": "ad_reporting_integration_tests_7_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": 1726597444.4836679, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7\".\"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": "ad_reporting_integration_tests_7_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": 1726597444.4876769, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7\".\"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": "ad_reporting_integration_tests_7_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": 1726597444.49147, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7\".\"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": "ad_reporting_integration_tests_7_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": 1726597444.495889, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7\".\"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": "ad_reporting_integration_tests_7_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": 1726597444.499711, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7\".\"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": "ad_reporting_integration_tests_7_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": 1726597444.503561, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7\".\"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": "ad_reporting_integration_tests_7_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": 1726597444.507432, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7\".\"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": "ad_reporting_integration_tests_7_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": 1726597444.511931, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7\".\"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": "ad_reporting_integration_tests_7_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": 1726597444.5157728, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7\".\"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": "ad_reporting_integration_tests_7_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": 1726597444.5196748, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7\".\"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": "ad_reporting_integration_tests_7_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": "632cca1bf09a444564b0191f47cbf9b915abc122a33771101bf532022445adba"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}, "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": 1726597447.387202, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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.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 {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='tiktok_ads__ad_group_hourly_passthrough_metrics', transform = 'sum') }}\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.fivetran_utils.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\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_tiktok_ads__ad_group_report_hourly\"\n), \n\nad_groups as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_tiktok_ads__advertiser\"\n), \n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_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.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": "ad_reporting_integration_tests_7_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": "f13afd947f065144756d205dbca162f146a9d03da149c33cca61c5037229390a"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}, "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": 1726597447.389872, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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.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 {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='tiktok_ads__ad_hourly_passthrough_metrics', transform = 'sum') }}\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.fivetran_utils.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\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_tiktok_ads__ad_report_hourly\"\n), \n\nads as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_tiktok_ads__advertiser\"\n), \n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_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.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": "ad_reporting_integration_tests_7_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": "65428adb314b3bb0f77e9f3df4705c1b0de4732b0894578c6936bdecfc8e541d"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}, "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": 1726597447.3878999, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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.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 {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='tiktok_ads__campaign_hourly_passthrough_metrics', transform = 'sum') }}\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.fivetran_utils.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\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_tiktok_ads__campaign_report_hourly\"\n), \n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_tiktok_ads__campaign_history\"\n where is_most_recent_record\n), \n\nadvertiser as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_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.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": "ad_reporting_integration_tests_7_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": "b6e44bf0fd46cf38a97e77939018234574ce2ac79aaf04be49d1c84ccab8e844"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}, "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": 1726597447.386357, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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.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 {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='tiktok_ads__ad_hourly_passthrough_metrics', transform = 'sum') }}\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.fivetran_utils.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\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_tiktok_ads__ad_report_hourly\"\n), \n\nads as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_tiktok_ads__advertiser\"\n), \n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_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.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": "ad_reporting_integration_tests_7_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": "1a10a6276a75789dee9b7a93d0f28dead678944e65d4a2414155cdc32761ad80"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}, "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": 1726597447.384955, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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.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 {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='tiktok_ads__ad_hourly_passthrough_metrics', transform = 'sum') }}\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.fivetran_utils.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\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_tiktok_ads__ad_report_hourly\"\n),\n\nadvertiser as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_tiktok_ads__advertiser\"\n), \n\nads as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_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.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": "ad_reporting_integration_tests_7_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": "31e158cb6df27218d4cf8dcd2ce39f42afb536cd3c92ee8cfcdb435ec7554d2b"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "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": 1726597447.43094, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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 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\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\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.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\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_twitter_ads__account_history\"\n where is_latest_version\n),\n\npromoted_tweet_report as (\n \n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_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\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\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": "ad_reporting_integration_tests_7_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": "6107d172aa2347eb7d09ce1ce4dd508a5b9f6135cd13734a305662f2ea90ac15"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "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": 1726597447.4268239, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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 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\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.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 from \"postgres\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_twitter_ads__campaign_report\"\n),\n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_twitter_ads__campaign_history\"\n where is_latest_version\n),\n\naccounts as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_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\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": "ad_reporting_integration_tests_7_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": "d18a996153670ae8f8095990516580e1ccb02fd4785124716936b58fd5e25df8"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "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": 1726597447.435235, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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 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\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.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 from \"postgres\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_twitter_ads__promoted_tweet_report\"\n),\n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_twitter_ads__campaign_history\"\n where is_latest_version\n),\n\naccounts as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_twitter_ads__account_history\"\n where is_latest_version\n),\n\nline_items as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_twitter_ads__promoted_tweet_history\"\n where is_latest_version\n),\n\ntweets as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_twitter_ads__tweet\"\n),\n\ntweet_url as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_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\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": "ad_reporting_integration_tests_7_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": "3d7fceb841d5592996ef8f44bf674838b00a29a20c516d6b073e1b844c06c583"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "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": 1726597447.433583, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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 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\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.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 from \"postgres\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_twitter_ads__promoted_tweet_report\"\n),\n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_twitter_ads__campaign_history\"\n where is_latest_version\n),\n\naccounts as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_twitter_ads__account_history\"\n where is_latest_version\n),\n\nline_items as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_twitter_ads__promoted_tweet_history\"\n where is_latest_version\n),\n\ntweets as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_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\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": "ad_reporting_integration_tests_7_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": "ef272838c187155e1eb3b89540cc718d465f88d794c85eb228b643a24c79effe"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "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": 1726597447.429596, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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 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\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.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 from \"postgres\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_twitter_ads__line_item_report\"\n),\n\nline_items as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_twitter_ads__line_item_history\"\n where is_latest_version\n),\n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_twitter_ads__campaign_history\"\n where is_latest_version\n),\n\naccounts as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_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\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.reddit_ads.reddit_ads__campaign_report": {"database": "postgres", "schema": "ad_reporting_integration_tests_7_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": "b409d2ced6512b40ac03912c9495ec1a351215a7fd0e3e76da3fe646f7942d04"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "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": 1726597447.478518, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\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\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='reddit_ads__campaign_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 {{ 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}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.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"]}, "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\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_reddit_ads__campaign_report\"\n),\n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_reddit_ads__campaign\"\n),\n\naccounts as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_reddit_ads__account\"\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\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\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": "ad_reporting_integration_tests_7_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": "d5d41313a0c6dcd6eae19be5ad3146684adaf5432ae66fb925367f0838dbfeb6"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "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": 1726597447.479548, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\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\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='reddit_ads__ad_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 {{ 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}], "sources": [], "metrics": [], "depends_on": {"macros": ["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.fivetran_utils.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"]}, "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\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_reddit_ads__ad_report\"\n),\n\nads as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_reddit_ads__ad\"\n),\n\nad_groups as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_reddit_ads__ad_group\"\n), \n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_reddit_ads__campaign\"\n), \n\naccounts as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_reddit_ads__account\"\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\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 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": "ad_reporting_integration_tests_7_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": "9da24c8de6a38f6faa808f7791f9c322445cf96156fe8e602b311838b317b448"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "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": 1726597447.476779, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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, joined 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\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='reddit_ads__account_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 {{ 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}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.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"]}, "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\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_reddit_ads__account_report\"\n), \n\naccounts as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_reddit_ads__account\"\n)\n\n, joined 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\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\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": "ad_reporting_integration_tests_7_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": "3829b527e97fcb46e19d9e92d2c81300fa0d45a98c0c145a67976789249dfb90"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "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": 1726597447.478067, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\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\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='reddit_ads__ad_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 {{ 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}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.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"]}, "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\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_reddit_ads__ad_report\"\n),\n\nads as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_reddit_ads__ad\"\n), \n\nad_groups as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_reddit_ads__ad_group\"\n),\n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_reddit_ads__campaign\"\n),\n\naccounts as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_reddit_ads__account\"\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\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 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": "ad_reporting_integration_tests_7_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": "fd5da3740da980d6900a4db95f834a5fcdcf76c0de5284dedb9e4b256e3c86d8"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "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": 1726597447.477301, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\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\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='reddit_ads__ad_group_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 {{ 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}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.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"]}, "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\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_reddit_ads__ad_group_report\"\n),\n\nad_groups as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_reddit_ads__ad_group\"\n),\n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_reddit_ads__campaign\"\n),\n\naccounts as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_reddit_ads__account\"\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\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 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": "ad_reporting_integration_tests_7_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": "1683c7b0877b314e13405ad070226e79790cf56baa9b4d9c74b39a8f35dedc31"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "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": 1726597447.565056, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend\n\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='pinterest__pin_promotion_report_passthrough_metrics', transform = 'sum') }}\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.fivetran_utils.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\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_pinterest_ads__pin_promotion_report\"\n), \n\npins as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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.clicks) as clicks,\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 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": "ad_reporting_integration_tests_7_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": "874b8e610a79c14c8512547a79a2bee51d4e8a9f790219dcba7d96615b07f5ce"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "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": 1726597447.566785, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='pinterest__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 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.fivetran_utils.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\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_pinterest_ads__campaign_report\"\n),\n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_pinterest_ads__campaign_history\"\n where is_most_recent_record = True\n),\n\nadvertisers as (\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_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\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": "ad_reporting_integration_tests_7_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": "d8b3813bbeb46f957244332a7b9a22c9fbee6325cbc396db5317dbfb7811dcba"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "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": 1726597447.568537, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='pinterest__keyword_report_passthrough_metrics', transform = 'sum') }}\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.fivetran_utils.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\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_pinterest_ads__keyword_report\"\n), \n\nadvertisers as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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\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": "ad_reporting_integration_tests_7_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": "f3223c1a41a69bceee12659ae60f919ff5a9af924f4fd9b273ff16e734a0c5ac"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "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": 1726597447.567532, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='pinterest__advertiser_report_passthrough_metrics', transform = 'sum') }}\n\n from report\n left join advertisers\n on report.advertiser_id = advertisers.advertiser_id\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.fivetran_utils.persist_pass_through_columns", "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\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_pinterest_ads__advertiser_report\"\n), \n\nadvertisers as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_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\n \n\n\n\n\n\n from report\n left join advertisers\n on report.advertiser_id = advertisers.advertiser_id\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": "ad_reporting_integration_tests_7_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": "27e64c6674a9d3d86bab43a406ba41c35e9a35275e64d8a7c5250fe80a47c99b"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "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": 1726597447.569265, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend\n\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='pinterest__pin_promotion_report_passthrough_metrics', transform = 'sum') }}\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.fivetran_utils.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\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_pinterest_ads__pin_promotion_report\"\n), \n\npins as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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.clicks) as clicks,\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 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": "ad_reporting_integration_tests_7_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": "e44502e705e8b1fff963954cbd11cad4a8ef7103e46929e982626b5eda683d67"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "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": 1726597447.566188, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='pinterest__ad_group_report_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 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.fivetran_utils.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\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_pinterest_ads__ad_group_report\"\n), \n\nadvertisers as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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\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_group": {"database": "postgres", "schema": "ad_reporting_integration_tests_7_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": 1726597447.62166, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.62, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "f0a5d95b9b23e62339a2a8bcd431a45c31da300f85ec868405b920a2d52e27a3"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": 1726597447.622884, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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 clicks,\n date as date_day,\n impressions,\n region,\n (spend/1000000) 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\".\"ad_reporting_integration_tests_7_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 clicks,\n date as date_day,\n impressions,\n region,\n (spend/1000000) 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": "ad_reporting_integration_tests_7_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": 1726597447.619073, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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__account_report": {"database": "postgres", "schema": "ad_reporting_integration_tests_7_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": "1121cba352e60f250382394dc566782afacac193ececf17c5b8ad053f1cbcbf1"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": 1726597447.6194959, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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 clicks,\n date as date_day,\n impressions,\n region,\n (spend/1000000) 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\".\"ad_reporting_integration_tests_7_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 clicks,\n date as date_day,\n impressions,\n region,\n (spend/1000000) 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": "ad_reporting_integration_tests_7_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": "b68eb6446cc4e372d9bb10a40551a560b031b226ca41fa1639346167f99747d4"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": 1726597447.6203961, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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 clicks,\n date as date_day,\n impressions,\n region,\n (spend/1000000) 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\".\"ad_reporting_integration_tests_7_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 clicks,\n date as date_day,\n impressions,\n region,\n (spend/1000000) 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": "ad_reporting_integration_tests_7_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": 1726597447.6224499, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "a799bc7229fe237b532c06c7d96b4e53b9bbc31951fe9241482d62d33c920592"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": 1726597447.622046, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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 clicks,\n date as date_day,\n impressions,\n region,\n (spend/1000000) 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\".\"ad_reporting_integration_tests_7_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 clicks,\n date as date_day,\n impressions,\n region,\n (spend/1000000) 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_tmp": {"database": "postgres", "schema": "ad_reporting_integration_tests_7_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": 1726597444.8563871, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7\".\"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": "ad_reporting_integration_tests_7_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": 1726597444.860471, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7\".\"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__campaign_report_tmp": {"database": "postgres", "schema": "ad_reporting_integration_tests_7_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": 1726597444.8653529, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7\".\"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": "ad_reporting_integration_tests_7_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": 1726597444.869408, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7\".\"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": "ad_reporting_integration_tests_7_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": 1726597444.8734038, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7\".\"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_group_tmp": {"database": "postgres", "schema": "ad_reporting_integration_tests_7_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": 1726597444.8773592, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7\".\"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": "ad_reporting_integration_tests_7_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": 1726597444.8823621, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7\".\"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": "ad_reporting_integration_tests_7_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": 1726597444.886372, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7\".\"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": "ad_reporting_integration_tests_7_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": "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://models/google_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1726597447.666925, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_google_ads__keyword_stats\"\n), \n\naccounts as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "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://models/google_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1726597447.6657379, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_google_ads__campaign_stats\"\n), \n\naccounts as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "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://models/google_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1726597447.6620579, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_google_ads__ad_stats\"\n), \n\naccounts as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "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://models/google_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1726597447.664659, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_google_ads__ad_stats\"\n), \n\naccounts as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "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://models/google_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1726597447.6634612, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_google_ads__ad_group_stats\"\n), \n\naccounts as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "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://models/google_ads.yml", "build_path": null, "unrendered_config": {"schema": "ad_reporting_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true}, "created_at": 1726597447.662771, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_google_ads__account_stats\"\n), \n\naccounts as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "856073be700204ef606820c2169ee9cd0be89f51d1279269976d5b39a2a230b4"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_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": []}}, "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": 1726597447.7016928, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\n {{ fivetran_utils.fill_pass_through_columns('amazon_ads__campaign_passthrough_metrics') }}\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.fivetran_utils.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\".\"ad_reporting_integration_tests_7_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 \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\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": "ad_reporting_integration_tests_7_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": "01dec1d9720f719dec5d21790cf317d2bb279d42ac99a4a6e05929ab03e56cf8"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "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": 1726597447.6983511, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\n {{ fivetran_utils.fill_pass_through_columns('amazon_ads__ad_group_passthrough_metrics') }}\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.fivetran_utils.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\".\"ad_reporting_integration_tests_7_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\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\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": "ad_reporting_integration_tests_7_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": "5c0bb87719e7dcdc32f51e3f98c3bb68b8f69cf2b8e54e2d8910b706c4c74ddf"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_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": []}}, "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": 1726597447.699472, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\n {{ fivetran_utils.fill_pass_through_columns('amazon_ads__advertised_product_passthrough_metrics') }}\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.fivetran_utils.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\".\"ad_reporting_integration_tests_7_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 TEXT) as \n \n advertised_asin\n \n , \n cast(null as TEXT) 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\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\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": "ad_reporting_integration_tests_7_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": 1726597447.704022, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.700844, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.704714, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "fb9efbdf909911b85d8f5e5cfe13635a50c37309a08f42b2f0622379fcb69c7c"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_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": []}}, "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": 1726597447.7070742, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\n {{ fivetran_utils.fill_pass_through_columns('amazon_ads__targeting_keyword_passthrough_metrics') }}\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.fivetran_utils.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\".\"ad_reporting_integration_tests_7_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\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\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": "ad_reporting_integration_tests_7_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": 1726597447.70606, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.702615, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.69758, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "6e2f3ae524d62ca92a6a1425b667293b0cd87d68a8b867ed7ad71535de3a8ee1"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_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": []}}, "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": 1726597447.707829, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\n {{ fivetran_utils.fill_pass_through_columns('amazon_ads__search_term_ad_keyword_passthrough_metrics') }}\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.fivetran_utils.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\".\"ad_reporting_integration_tests_7_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\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\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": "ad_reporting_integration_tests_7_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": 1726597445.090786, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7\".\"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": "ad_reporting_integration_tests_7_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": 1726597445.09494, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7\".\"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": "ad_reporting_integration_tests_7_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": 1726597445.099724, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7\".\"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": "ad_reporting_integration_tests_7_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": 1726597445.10354, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7\".\"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": "ad_reporting_integration_tests_7_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": 1726597445.107661, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7\".\"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": "ad_reporting_integration_tests_7_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": 1726597445.11248, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7\".\"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": "ad_reporting_integration_tests_7_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": 1726597445.1164942, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7\".\"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": "ad_reporting_integration_tests_7_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": 1726597445.120568, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7\".\"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": "ad_reporting_integration_tests_7_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": 1726597445.124728, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7\".\"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": "ad_reporting_integration_tests_7_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": 1726597445.1295419, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7\".\"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": "ad_reporting_integration_tests_7_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": 1726597445.1339421, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7\".\"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": "ad_reporting_integration_tests_7_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": "54f3fa174469477d8f23ad0f94f493e7549043afe6bc55466a98395744aba35f"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": 1726597447.80747, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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 {{ linkedin_source.result_if_table_exists(\n table_ref=ref('stg_linkedin_ads__creative_history_tmp'), \n result_statement='row_number() over (partition by id' ~ (', source_relation' if var('linkedin_ads_union_schemas', []) or var('linkedin_ads_union_databases', []) | length > 1) ~ ' order by coalesce(last_modified_time, last_modified_at) desc)',\n if_empty=1\n )}} = 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}, {"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.linkedin_source.result_if_table_exists", "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\".\"ad_reporting_integration_tests_7_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 row_number() over (partition by 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 \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": "ad_reporting_integration_tests_7_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": "cd6cc3e5153c6a0bf10e3e9b9aef2f44047d08e3755601aba0204ddaa4533e4b"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": 1726597447.810434, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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 {{ linkedin_source.result_if_table_exists(\n table_ref=ref('stg_linkedin_ads__campaign_history_tmp'), \n result_statement='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)',\n if_empty=1\n )}} = 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}, {"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", "macro.linkedin_source.result_if_table_exists"], "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\".\"ad_reporting_integration_tests_7_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 \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": "ad_reporting_integration_tests_7_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": 1726597447.806287, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "a7f77be44dd5e37ff34e08554203a8f00ff1962b5f8de03d4432a8ce80bed8eb"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": 1726597447.81155, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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 {{ linkedin_source.result_if_table_exists(\n table_ref=ref('stg_linkedin_ads__campaign_group_history_tmp'), \n result_statement='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)',\n if_empty=1\n )}} = 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}, {"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", "macro.linkedin_source.result_if_table_exists"], "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\".\"ad_reporting_integration_tests_7_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 \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": "ad_reporting_integration_tests_7_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": "cb980c560869b97e14cea8cc43e8654e1b4df0d642dabc302358bdb3c1747dc6"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": 1726597447.812023, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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 {{ linkedin_source.result_if_table_exists(\n table_ref=ref('stg_linkedin_ads__account_history_tmp'), \n result_statement='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)',\n if_empty=1\n )}} = 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}, {"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", "macro.linkedin_source.result_if_table_exists"], "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\".\"ad_reporting_integration_tests_7_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 \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": "ad_reporting_integration_tests_7_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": 1726597447.805812, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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 cast(null as numeric(28,6)) as \n \n conversion_value_in_local_currency\n \n , \n cast(null as TEXT) as \n \n external_website_conversions\n \n , \n cast(null as TEXT) 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": "ad_reporting_integration_tests_7_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": 1726597445.237186, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7\".\"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": "ad_reporting_integration_tests_7_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": 1726597445.242338, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7\".\"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": "ad_reporting_integration_tests_7_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": 1726597445.246568, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7\".\"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": "ad_reporting_integration_tests_7_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": 1726597445.2503629, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7\".\"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": "ad_reporting_integration_tests_7_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": 1726597445.2556832, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7\".\"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": "ad_reporting_integration_tests_7_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": 1726597445.259965, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7\".\"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": "ad_reporting_integration_tests_7_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": "a94c3b782450a3a6aae32e9f9e2b40b9c4ac6fc1f948396e3dbdbaa74dfc21cb"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "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": 1726597447.8547158, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\n --use campaign report since portfolio report not provided\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='amazon_ads__campaign_passthrough_metrics', transform='sum') }}\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.fivetran_utils.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\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_amazon_ads__campaign_level_report\"\n), \n\naccount_info as (\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_amazon_ads__profile\"\n where _fivetran_deleted = False\n),\n\nportfolios as (\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_amazon_ads__portfolio_history\"\n where is_most_recent_record = True\n), \n\ncampaigns as (\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_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\n --use campaign report since portfolio report not provided\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": "ad_reporting_integration_tests_7_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": "2f457e5be210330ee7901b160d5d7d63bf71bb4e34f8f5c5b7c55300a42aba58"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "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": 1726597447.856626, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='amazon_ads__search_term_ad_keyword_passthrough_metrics', transform='sum') }}\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.fivetran_utils.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\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_amazon_ads__search_term_ad_keyword_report\"\n), \n\naccount_info as (\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_amazon_ads__profile\"\n where _fivetran_deleted = False\n),\n\nportfolios as (\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"int_amazon_ads__portfolio_history\"\n), \n\ncampaigns as (\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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\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": "ad_reporting_integration_tests_7_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": "3585c5d7c15e1cf5e331322030439fb7b6eff2a9b8eb7052de77a2493ac8beeb"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "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": 1726597447.8526561, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='amazon_ads__ad_group_passthrough_metrics', transform='sum') }}\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.fivetran_utils.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\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_amazon_ads__ad_group_level_report\"\n), \n\naccount_info as (\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_amazon_ads__profile\"\n where _fivetran_deleted = False\n),\n\nportfolios as (\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"int_amazon_ads__portfolio_history\"\n), \n\ncampaigns as (\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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\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": "ad_reporting_integration_tests_7_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": "bf37129bdfe4883e08e60a35a37b5b5db72227ba825c42b95c32e601839c6cb2"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "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": 1726597447.8553758, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='amazon_ads__targeting_keyword_passthrough_metrics', transform='sum') }}\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.fivetran_utils.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\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_amazon_ads__targeting_keyword_report\"\n), \n\naccount_info as (\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_amazon_ads__profile\"\n where _fivetran_deleted = False\n),\n\nportfolios as (\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"int_amazon_ads__portfolio_history\"\n), \n\ncampaigns as (\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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\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": "ad_reporting_integration_tests_7_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": "15f418ea778f131475ccf400d6dac9404047b6d2ef288234457361c8aa2f44c7"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "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": 1726597447.854072, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='amazon_ads__campaign_passthrough_metrics', transform='sum') }}\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.fivetran_utils.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\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_amazon_ads__campaign_level_report\"\n), \n\naccount_info as (\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_amazon_ads__profile\"\n where _fivetran_deleted = False\n),\n\nportfolios as (\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"int_amazon_ads__portfolio_history\"\n), \n\ncampaigns as (\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_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\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": "ad_reporting_integration_tests_7_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": "ec15213abcab9fd04d4c0181ac93f996fbc89defe0baa7ae768fea6294ef36da"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "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": 1726597447.8519292, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\n --use campaign report since portfolio report not provided\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='amazon_ads__campaign_passthrough_metrics', transform='sum') }}\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.fivetran_utils.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\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_amazon_ads__campaign_level_report\"\n), \n\naccount_info as (\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_amazon_ads__profile\"\n where _fivetran_deleted = False\n),\n\ncampaigns as (\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_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\n --use campaign report since portfolio report not provided\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": "ad_reporting_integration_tests_7_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": "8bbcea2ea134023238c88eac41315b4100224ff64bb33f21d962f61f4a51bd2f"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "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": 1726597447.853483, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='amazon_ads__advertised_product_passthrough_metrics', transform='sum') }}\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.fivetran_utils.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\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_amazon_ads__advertised_product_report\"\n), \n\naccount_info as (\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_amazon_ads__profile\"\n where _fivetran_deleted = False\n),\n\nportfolios as (\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"int_amazon_ads__portfolio_history\"\n), \n\ncampaigns as (\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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\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": "ad_reporting_integration_tests_7_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": 1726597445.396397, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "9410d7fd5d0b0de09cba20f7b1701121eed0ece1ceb119333401a0e8d5c95548"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "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": 1726597447.892093, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\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\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='facebook_ads__basic_ad_passthrough_metrics', transform = 'sum') }}\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 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__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.fivetran_utils.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__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\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_facebook_ads__basic_ad\"\n\n), \n\ncreatives as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"int_facebook_ads__creative_history\"\n\n), \n\naccounts as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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\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 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": "ad_reporting_integration_tests_7_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": 1726597447.8950999, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "07b12378e6c3ee119d610c70866656fd4413354742494e25ea0a697b3e1baace"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "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": 1726597447.893922, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\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\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='facebook_ads__basic_ad_passthrough_metrics', transform = 'sum') }}\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 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": "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.fivetran_utils.persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__basic_ad", "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\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_facebook_ads__basic_ad\"\n\n), \n\naccounts as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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\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 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": "ad_reporting_integration_tests_7_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": "7c56dfc810becb760e32cdff86b02d2328848bc3402300faa8f90266b39eb0ad"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "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": 1726597447.894302, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\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\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='facebook_ads__basic_ad_passthrough_metrics', transform = 'sum') }}\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_facebook_ads__basic_ad", "package": null, "version": null}, {"name": "stg_facebook_ads__account_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__basic_ad", "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\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_facebook_ads__basic_ad\"\n\n), \n\naccounts as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_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\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.facebook_ads.facebook_ads__ad_report": {"database": "postgres", "schema": "ad_reporting_integration_tests_7_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": "f382a5d9801d8b2cef8e358c6691347c9c6a346d7b1e1c0ed4e2ba81e33f166d"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "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": 1726597447.8928902, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\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 sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend\n\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='facebook_ads__basic_ad_passthrough_metrics', transform = 'sum') }}\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 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(10) }}\n)\n\nselect *\nfrom joined", "language": "sql", "refs": [{"name": "stg_facebook_ads__basic_ad", "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.fivetran_utils.persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__basic_ad", "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\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_facebook_ads__basic_ad\"\n\n), \n\naccounts as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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 sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend\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 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\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": "ad_reporting_integration_tests_7_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": "3a0c7f0dc6eabe850e971dd31b5845c1d99e7ffbcaf5d566a6a4f8409fa6b803"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "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": 1726597447.893489, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\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 sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend\n\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='facebook_ads__basic_ad_passthrough_metrics', transform = 'sum') }}\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 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(13) }}\n)\n\nselect *\nfrom joined", "language": "sql", "refs": [{"name": "stg_facebook_ads__basic_ad", "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.fivetran_utils.persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__basic_ad", "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\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_facebook_ads__basic_ad\"\n\n), \n\naccounts as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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 sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend\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 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\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": "ad_reporting_integration_tests_7_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": 1726597445.4550169, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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.snapchat_ads.snapchat_ads__ad_report": {"database": "postgres", "schema": "ad_reporting_integration_tests_7_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": "d5d4dfd8b53b975f2cee2da78d00072727921ef264bb51eee0087f5e568770e7"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "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": 1726597447.927128, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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 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 \n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='snapchat_ads__ad_hourly_passthrough_metrics', transform = 'sum') }}\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.fivetran_utils.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\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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 from \"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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 \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\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "15688ef56b9031405b7551bbd87199b11b755624066be6abe16d52a0a1605b98"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "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": 1726597447.9293911, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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 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 \n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='snapchat_ads__ad_hourly_passthrough_metrics', transform = 'sum') }}\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.fivetran_utils.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\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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 from \"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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 \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\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "edbd01f5a56bdd4fbbee68f8d3fae2ca3a34524f2b086d6fd78a8b473d3a785c"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "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": 1726597447.9266481, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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 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\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='snapchat_ads__ad_hourly_passthrough_metrics', transform = 'sum') }}\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.fivetran_utils.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 from \"postgres\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_snapchat_ads__ad_hourly_report\"\n\n), account as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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\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": "ad_reporting_integration_tests_7_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": "c5a6732162b500b1c3ca0ea67c0c32114467efec03629a895664d239131e8a89"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "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": 1726597447.928672, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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 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 \n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='snapchat_ads__ad_squad_hourly_passthrough_metrics', transform = 'sum') }}\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.fivetran_utils.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 from \"postgres\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_snapchat_ads__ad_squad_hourly_report\"\n\n), account as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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 \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": "ad_reporting_integration_tests_7_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": "4706ff55fcc94cc2e1c570f4cdc2b7e0db84ecd4db5c77650753a23b8976f4e7"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "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": 1726597447.927663, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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 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 \n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='snapchat_ads__campaign_hourly_report_passthrough_metrics', transform = 'sum') }}\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.fivetran_utils.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 from \"postgres\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_snapchat_ads__campaign_hourly_report\"\n\n), account as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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 \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": "ad_reporting_integration_tests_7_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": 1726597445.5039968, "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\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.965504, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.967029, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.9621649, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.9628549, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.966552, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.963819, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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 cast(null as integer) as \n \n conversions\n \n , \n cast(null as integer) as \n \n conversions_value\n \n , \n cast(null as integer) 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": "ad_reporting_integration_tests_7_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": 1726597447.965011, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.965994, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.964468, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.961642, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597445.6746, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7\".\"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": "ad_reporting_integration_tests_7_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": 1726597445.6787999, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7\".\"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": "ad_reporting_integration_tests_7_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": 1726597445.682965, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7\".\"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": "ad_reporting_integration_tests_7_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": 1726597445.687872, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7\".\"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": "ad_reporting_integration_tests_7_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": 1726597445.691921, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7\".\"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": "ad_reporting_integration_tests_7_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": 1726597445.6956868, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7\".\"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": "ad_reporting_integration_tests_7_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": 1726597445.699587, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7\".\"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": "ad_reporting_integration_tests_7_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": 1726597445.704334, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7\".\"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": "ad_reporting_integration_tests_7_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": 1726597445.708263, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7\".\"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": "ad_reporting_integration_tests_7_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": 1726597445.712353, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7\".\"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": "ad_reporting_integration_tests_7_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": "d367f05d831caf52bea1206a52f962555cdddb91c63816b31d1698803472dd7f"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}, "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": 1726597448.076669, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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.impressions) as impressions,\n sum(report.spend) as spend\n\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='apple_search_ads__ad_passthrough_metrics', transform = 'sum') }}\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.fivetran_utils.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\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_apple_search_ads__ad_report\"\n), \n\nad as (\n\n select * \n from \"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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.impressions) as impressions,\n sum(report.spend) as spend\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": "postgres", "schema": "ad_reporting_integration_tests_7_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": "b980eb893f6ae4c41281e2d6b0d24d8eb3cc5f0bde0804df3d1ce797f703e215"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}, "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": 1726597448.0760162, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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.impressions) as impressions,\n sum(report.spend) as spend\n\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='apple_search_ads__ad_group_passthrough_metrics', transform = 'sum') }}\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.fivetran_utils.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\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_apple_search_ads__ad_group_report\"\n), \n\nad_group as (\n\n select * \n from \"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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.impressions) as impressions,\n sum(report.spend) as spend\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": "postgres", "schema": "ad_reporting_integration_tests_7_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": "4f5f3e0efae4692aabdd3d86ab2671a762ba3bf0be7c29362109eefcb7efab8a"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}, "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": 1726597448.078469, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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.impressions) as impressions,\n sum(report.spend) as spend\n\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='apple_search_ads__keyword_passthrough_metrics', transform = 'sum') }}\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.fivetran_utils.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\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_apple_search_ads__keyword_report\"\n), \n\nkeyword as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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.impressions) as impressions,\n sum(report.spend) as spend\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": "postgres", "schema": "ad_reporting_integration_tests_7_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": "f656c76a51063932a93b88077adc66c9776df7c72c09a15a8efe16bbadba9170"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}, "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": 1726597448.079815, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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.impressions) as impressions,\n sum(report.spend) as spend\n\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='apple_search_ads__search_term_passthrough_metrics', transform = 'sum') }}\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.fivetran_utils.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\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_apple_search_ads__search_term_report\"\n), \n\ncampaign as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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.impressions) as impressions,\n sum(report.spend) as spend\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": "postgres", "schema": "ad_reporting_integration_tests_7_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": "ec48f7ba86516c32a387334a1763942c86da43ff05ff1323cd976a2e326a7a5b"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}, "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": 1726597448.07773, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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.impressions) as impressions,\n sum(report.spend) as spend\n\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='apple_search_ads__campaign_passthrough_metrics', transform = 'sum') }}\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.fivetran_utils.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\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_apple_search_ads__campaign_report\"\n\n), \n\ncampaign as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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.impressions) as impressions,\n sum(report.spend) as spend\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": "postgres", "schema": "ad_reporting_integration_tests_7_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": "461756427ca6788b6e0ae8d5018329dd197b1e78e267247cdbfa184f205c38d3"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}, "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": 1726597448.078965, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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.impressions) as impressions,\n sum(report.spend) as spend\n\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='apple_search_ads__campaign_passthrough_metrics', transform = 'sum') }}\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.fivetran_utils.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\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_apple_search_ads__campaign_report\"\n), \n\ncampaign as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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.impressions) as impressions,\n sum(report.spend) as spend\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": "postgres", "schema": "ad_reporting_integration_tests_7_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": "39520ba5982f7709a169631745d9c6861e70da2711ea9e183db827b2572465be"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "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": 1726597448.1161768, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='ad_reporting__campaign_passthrough_metrics', transform = 'sum') }}\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.fivetran_utils.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\ntwitter_ads as (\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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"twitter_ads__campaign_report\"\n\n),\n\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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(cost as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"tiktok_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(impressions as integer) as impressions\n\n ,cast(cost as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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\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\ntwitter_ads as (\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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"twitter_ads__campaign_report\"\n\n),\n\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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(cost as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"tiktok_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(impressions as integer) as impressions\n\n ,cast(cost as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "521cdb8a8229169f8d13f587f55a2f5d48f97d110b99ab292c328eea1589272f"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "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": 1726597448.114601, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='ad_reporting__account_passthrough_metrics', transform = 'sum') }}\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.fivetran_utils.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\ntwitter_ads as (\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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"twitter_ads__account_report\"\n\n),\n\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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(cost as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"tiktok_ads__advertiser_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(impressions as integer) as impressions\n\n ,cast(cost as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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\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\ntwitter_ads as (\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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"twitter_ads__account_report\"\n\n),\n\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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(cost as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"tiktok_ads__advertiser_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(impressions as integer) as impressions\n\n ,cast(cost as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "889440899ce282315594d9a9badda69d8ae6cc0603a676823d929e2bbbff6bba"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "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": 1726597448.115117, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='ad_reporting__ad_group_passthrough_metrics', transform = 'sum') }}\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.fivetran_utils.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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(cost as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(cost as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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\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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(cost as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(cost as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "d61428c98ad8ccb22a35dfa00afc711bc49238444a3abead01574b4c5788614c"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "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": 1726597448.117465, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='ad_reporting__search_passthrough_metrics', transform = 'sum') }}\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.fivetran_utils.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(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\".\"ad_reporting_integration_tests_7_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(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\".\"ad_reporting_integration_tests_7_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(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\".\"ad_reporting_integration_tests_7_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\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(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\".\"ad_reporting_integration_tests_7_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(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\".\"ad_reporting_integration_tests_7_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(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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "f43d14ebf288a05fae84765c32cd1e4fab17f9d5729f0a5f07d0b8d8726c5320"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "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": 1726597448.115714, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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 \n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='ad_reporting__ad_passthrough_metrics', transform = 'sum') }}\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.fivetran_utils.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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(cost as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(cost as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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 \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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(cost as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(cost as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "855cf40d462ef88c98929abc61add5a0b9f173f4754bdbd419e7f935d9713e94"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "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": 1726597448.118104, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='ad_reporting__ad_passthrough_metrics', transform = 'sum') }}\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.fivetran_utils.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(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\".\"ad_reporting_integration_tests_7_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(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\".\"ad_reporting_integration_tests_7_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(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\".\"ad_reporting_integration_tests_7_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(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\".\"ad_reporting_integration_tests_7_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(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\".\"ad_reporting_integration_tests_7_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(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\".\"ad_reporting_integration_tests_7_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(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\".\"ad_reporting_integration_tests_7_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(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\".\"ad_reporting_integration_tests_7_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(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\".\"ad_reporting_integration_tests_7_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\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(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\".\"ad_reporting_integration_tests_7_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(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\".\"ad_reporting_integration_tests_7_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(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\".\"ad_reporting_integration_tests_7_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(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\".\"ad_reporting_integration_tests_7_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(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\".\"ad_reporting_integration_tests_7_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(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\".\"ad_reporting_integration_tests_7_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(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\".\"ad_reporting_integration_tests_7_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(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\".\"ad_reporting_integration_tests_7_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(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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "e30edfebc8d8451834481e08f8cadbbb5c82c2d37d3c1596d7d9666bdcf603b4"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "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": 1726597448.116704, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='ad_reporting__keyword_passthrough_metrics', transform = 'sum') }}\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.fivetran_utils.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(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\".\"ad_reporting_integration_tests_7_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(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\".\"ad_reporting_integration_tests_7_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(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\".\"ad_reporting_integration_tests_7_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(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\".\"ad_reporting_integration_tests_7_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 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(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\".\"ad_reporting_integration_tests_7_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\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(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\".\"ad_reporting_integration_tests_7_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(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\".\"ad_reporting_integration_tests_7_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(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\".\"ad_reporting_integration_tests_7_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(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\".\"ad_reporting_integration_tests_7_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 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(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\".\"ad_reporting_integration_tests_7_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": "postgres", "schema": "ad_reporting_integration_tests_7_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": 1726597445.812125, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "fa96bcb55ec7c848acb1ee90f5026164682349b38262b9fa4b3b0f56803c0851"}, "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": 1726597445.837775, "relation_name": null, "raw_code": "{% set enabled_packages = get_enabled_packages() %}\n{{ config(enabled=is_enabled(enabled_packages)) }}\n\nwith\n{% for package in ['twitter_ads', '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 },\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 },\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 },\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 },\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 },\n relation=ref('tiktok_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 },\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 },\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": "twitter_ads__campaign_report", "package": null, "version": null}, {"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": "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.twitter_ads.twitter_ads__campaign_report", "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.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\ntwitter_ads as (\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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"twitter_ads__campaign_report\"\n\n),\n\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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(cost as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"tiktok_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(impressions as integer) as impressions\n\n ,cast(cost as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "a1879451acab980879ad6e8cd4b29e3a7541616294af5b3a4fbe9664e6ad2271"}, "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": 1726597445.9152598, "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 },\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 },\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 },\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 },\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 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(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\".\"ad_reporting_integration_tests_7_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(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\".\"ad_reporting_integration_tests_7_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(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\".\"ad_reporting_integration_tests_7_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(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\".\"ad_reporting_integration_tests_7_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 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(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\".\"ad_reporting_integration_tests_7_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": "postgres", "schema": "ad_reporting_integration_tests_7_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": "540cec6af930e2a24dbf60c4d4114bf17e543797bc7fd909329e4be917d869a4"}, "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": 1726597445.931367, "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 },\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 },\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 },\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 },\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 },\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 },\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 },\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 },\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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(cost as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(cost as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "7c78606eeac98c9cb1f523e081c71330ef2d067c6c3d4ec8a9619bf6f1bb696c"}, "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": 1726597445.956789, "relation_name": null, "raw_code": "{% set enabled_packages = get_enabled_packages() %}\n{{ config(enabled=is_enabled(enabled_packages)) }}\n\nwith\n{% for package in ['twitter_ads', '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 },\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 },\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 },\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 },\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 },\n relation=ref('tiktok_ads__advertiser_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 },\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 },\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": "twitter_ads__account_report", "package": null, "version": null}, {"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": "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.twitter_ads.twitter_ads__account_report", "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.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\ntwitter_ads as (\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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"twitter_ads__account_report\"\n\n),\n\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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(cost as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"tiktok_ads__advertiser_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(impressions as integer) as impressions\n\n ,cast(cost as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "e174558a546f62bc92e0c9395b4c1d6c99185a3192f4978110e47338674af6c0"}, "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": 1726597445.973661, "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 },\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 },\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 },\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 },\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 },\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 },\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(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\".\"ad_reporting_integration_tests_7_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(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\".\"ad_reporting_integration_tests_7_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(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\".\"ad_reporting_integration_tests_7_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(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\".\"ad_reporting_integration_tests_7_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(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\".\"ad_reporting_integration_tests_7_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(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\".\"ad_reporting_integration_tests_7_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(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\".\"ad_reporting_integration_tests_7_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(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\".\"ad_reporting_integration_tests_7_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(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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "921d206e1485d8c8aba0c85cb48a00a1e6773486ef2c0fe2c5c953c650a3f60c"}, "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": 1726597446.0011818, "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 },\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 },\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(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\".\"ad_reporting_integration_tests_7_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(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\".\"ad_reporting_integration_tests_7_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(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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "8020b2e69bd0f228a2f3c63c5e9aaa01116863ac9c1c1c89ef33f0a4df48606c"}, "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": 1726597446.012234, "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 },\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 },\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 },\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 },\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 },\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 },\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 },\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 },\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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(cost as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(cost as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.238417, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "dd8c1fa5e6342d3c1fd57e3afc1448360dbafbd4fd8fc7254ce9c8def1599ca7"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}, "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": 1726597448.237972, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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 impressions,\n local_spend_amount as spend,\n local_spend_currency as currency,\n new_downloads,\n redownloads,\n taps\n\n {{ fivetran_utils.fill_pass_through_columns('apple_search_ads__ad_passthrough_metrics') }}\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.fivetran_utils.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\".\"ad_reporting_integration_tests_7_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 \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 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 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": "ad_reporting_integration_tests_7_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": "a04d0237fb49e6a3df5abfa44679c6c3b278e6c935572705c509e5111f3885da"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}, "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": 1726597448.238862, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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 impressions,\n local_spend_amount as spend,\n local_spend_currency as currency,\n new_downloads,\n redownloads,\n taps\n\n {{ fivetran_utils.fill_pass_through_columns('apple_search_ads__campaign_passthrough_metrics') }}\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.fivetran_utils.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\".\"ad_reporting_integration_tests_7_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 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 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 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": "ad_reporting_integration_tests_7_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": 1726597448.240352, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "f1616490aff7bbf2113a4cdbab1414e3285d1914f3807807762a962656686910"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}, "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": 1726597448.239897, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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 impressions,\n local_spend_amount as spend,\n local_spend_currency as currency,\n new_downloads,\n redownloads,\n taps\n\n {{ fivetran_utils.fill_pass_through_columns('apple_search_ads__keyword_passthrough_metrics') }}\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.fivetran_utils.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\".\"ad_reporting_integration_tests_7_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 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 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 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": "ad_reporting_integration_tests_7_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": 1726597448.239423, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "4a92bee533bd7388b48209c0911b5eb7f30c7823d3580e8f185416090f34bf7f"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}, "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": 1726597448.241326, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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 impressions,\n taps,\n new_downloads,\n redownloads\n\n {{ fivetran_utils.fill_pass_through_columns('apple_search_ads__search_term_passthrough_metrics') }}\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.fivetran_utils.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\".\"ad_reporting_integration_tests_7_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 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 impressions,\n taps,\n new_downloads,\n redownloads\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": "ad_reporting_integration_tests_7_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": 1726597448.2365608, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.23748, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "2c407e9c368ea095a3ba2732ca8bb1c03750409c6cfdbb9e212a6cdab647f9b4"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}, "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": 1726597448.237005, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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 impressions,\n local_spend_amount as spend,\n local_spend_currency as currency,\n new_downloads,\n redownloads,\n taps\n\n {{ fivetran_utils.fill_pass_through_columns('apple_search_ads__ad_group_passthrough_metrics') }}\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.fivetran_utils.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\".\"ad_reporting_integration_tests_7_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 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 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 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": "ad_reporting_integration_tests_7_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": 1726597446.121732, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7\".\"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": "ad_reporting_integration_tests_7_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": 1726597446.125723, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7\".\"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": "ad_reporting_integration_tests_7_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": 1726597446.130804, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7\".\"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": "ad_reporting_integration_tests_7_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": 1726597446.134697, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7\".\"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": "ad_reporting_integration_tests_7_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": 1726597446.138824, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7\".\"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": "ad_reporting_integration_tests_7_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": 1726597446.1428869, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7\".\"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": "ad_reporting_integration_tests_7_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": 1726597446.148176, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7\".\"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": "ad_reporting_integration_tests_7_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": 1726597446.152353, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7\".\"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": "ad_reporting_integration_tests_7_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": 1726597446.156441, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7\".\"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": "ad_reporting_integration_tests_7_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": 1726597446.161691, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7\".\"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": "ad_reporting_integration_tests_7_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": "61715873423c0bbc53c196d84ca3f5651dfa860fa343960259ce927c9817889a"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": 1726597448.298021, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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 id as pin_promotion_id,\n ad_account_id as advertiser_id,\n 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 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.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\".\"ad_reporting_integration_tests_7_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 id as pin_promotion_id,\n ad_account_id as advertiser_id,\n 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 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": "ad_reporting_integration_tests_7_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": "f8795d4605624512d051f89977d608d3b84502275a6beaeb024a7802c7aeead5"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "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": 1726597448.301735, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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 keyword_id,\n pin_promotion_id,\n ad_group_id,\n ad_group_name,\n ad_group_status,\n campaign_id,\n 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 spend_in_micro_dollar / 1000000.0 as spend\n\n {{ fivetran_utils.fill_pass_through_columns('pinterest__keyword_report_passthrough_metrics') }}\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.fivetran_utils.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\".\"ad_reporting_integration_tests_7_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 cast(null as integer) 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 cast(null as integer) 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 \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 keyword_id,\n pin_promotion_id,\n ad_group_id,\n ad_group_name,\n ad_group_status,\n campaign_id,\n 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 spend_in_micro_dollar / 1000000.0 as spend\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.pinterest_source.stg_pinterest_ads__ad_group_report": {"database": "postgres", "schema": "ad_reporting_integration_tests_7_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": "0f5f7ff9790a59c7816e15a6162e19b713513efd7c620b6a927da2cddef27abc"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "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": 1726597448.298996, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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 ad_group_id,\n ad_group_name,\n ad_group_status,\n campaign_id,\n 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 spend_in_micro_dollar / 1000000.0 as spend\n\n {{ fivetran_utils.fill_pass_through_columns('pinterest__ad_group_report_passthrough_metrics') }}\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.fivetran_utils.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\".\"ad_reporting_integration_tests_7_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 cast(null as integer) 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 cast(null as integer) 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 \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 ad_group_id,\n ad_group_name,\n ad_group_status,\n campaign_id,\n 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 spend_in_micro_dollar / 1000000.0 as spend\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.pinterest_source.stg_pinterest_ads__campaign_history": {"database": "postgres", "schema": "ad_reporting_integration_tests_7_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": "462c66b97b5084f3868d81b0f63ba6521f49e46694523210b469d0f68f16b2d0"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": 1726597448.297222, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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 id as campaign_id,\n name as campaign_name,\n 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"], "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\".\"ad_reporting_integration_tests_7_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 id as campaign_id,\n name as campaign_name,\n 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": "ad_reporting_integration_tests_7_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": "49f19741d64a3fc9fc151e3964c811c5727e9213c6099bfb27f45b8df99386e7"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "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": 1726597448.300164, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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 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 spend_in_micro_dollar / 1000000.0 as spend\n\n {{ fivetran_utils.fill_pass_through_columns('pinterest__advertiser_report_passthrough_metrics') }}\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.fivetran_utils.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\".\"ad_reporting_integration_tests_7_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 cast(null as integer) 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 cast(null as integer) 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 \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 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 spend_in_micro_dollar / 1000000.0 as spend\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.pinterest_source.stg_pinterest_ads__advertiser_history": {"database": "postgres", "schema": "ad_reporting_integration_tests_7_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": "731df1fabe19cbaeea752299f505973731a8a57c281f92699fae43f3139de445"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": 1726597448.299804, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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 id 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"], "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\".\"ad_reporting_integration_tests_7_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 id 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": "ad_reporting_integration_tests_7_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": "dbb356c48560d73a451e9d61b51edacd1984d8582c5a7c2f355a019bddaf141a"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "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": 1726597448.3006248, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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 campaign_id,\n campaign_name,\n campaign_status,\n 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 spend_in_micro_dollar / 1000000.0 as spend\n\n {{ fivetran_utils.fill_pass_through_columns('pinterest__campaign_report_passthrough_metrics') }}\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.fivetran_utils.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\".\"ad_reporting_integration_tests_7_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 cast(null as integer) 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 cast(null as integer) 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 \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 campaign_id,\n campaign_name,\n campaign_status,\n 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 spend_in_micro_dollar / 1000000.0 as spend\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.pinterest_source.stg_pinterest_ads__keyword_history": {"database": "postgres", "schema": "ad_reporting_integration_tests_7_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": "c17ca5238da3181d413006b4dee994aedcbd28a073b67c5d7b9ccc502ed2bec2"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": 1726597448.3012328, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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 id as keyword_id,\n value as keyword_value,\n _fivetran_id,\n _fivetran_synced,\n ad_group_id,\n advertiser_id,\n archived,\n bid,\n 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"], "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\".\"ad_reporting_integration_tests_7_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 id as keyword_id,\n value as keyword_value,\n _fivetran_id,\n _fivetran_synced,\n ad_group_id,\n advertiser_id,\n archived,\n bid,\n 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": "ad_reporting_integration_tests_7_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": "adbb1233390c228aecf3343e6a54c65bd4f61ba92d22b58a943a9fdc88f71787"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "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": 1726597448.298485, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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 pin_promotion_id,\n ad_group_id,\n campaign_id,\n 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 spend_in_micro_dollar / 1000000.0 as spend\n\n {{ fivetran_utils.fill_pass_through_columns('pinterest__pin_promotion_report_passthrough_metrics') }}\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.fivetran_utils.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\".\"ad_reporting_integration_tests_7_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 \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 pin_promotion_id,\n ad_group_id,\n campaign_id,\n 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 spend_in_micro_dollar / 1000000.0 as spend\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.pinterest_source.stg_pinterest_ads__ad_group_history": {"database": "postgres", "schema": "ad_reporting_integration_tests_7_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": "96b6afda2dcc1fc8cfbc2bf8aadc44f705325e7c07eb27350157ec56cfd3dc8d"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": 1726597448.2958841, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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 id 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 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"], "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\".\"ad_reporting_integration_tests_7_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 id 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 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": "ad_reporting_integration_tests_7_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": 1726597446.308212, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7\".\"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": "ad_reporting_integration_tests_7_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": 1726597446.3124108, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7\".\"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": "ad_reporting_integration_tests_7_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": 1726597446.317214, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7\".\"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": "ad_reporting_integration_tests_7_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": 1726597446.321283, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7\".\"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": "ad_reporting_integration_tests_7_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": 1726597446.325429, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7\".\"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": "ad_reporting_integration_tests_7_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": 1726597446.330548, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7\".\"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": "ad_reporting_integration_tests_7_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": 1726597446.334626, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7\".\"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": "ad_reporting_integration_tests_7_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": 1726597446.33888, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7\".\"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": "ad_reporting_integration_tests_7_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": 1726597446.342842, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7\".\"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": "ad_reporting_integration_tests_7_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": 1726597446.3479328, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7\".\"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": "ad_reporting_integration_tests_7_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": "16b447b1ccc556275104378b55f4a0eacbe9c42ce4084ca4b2edd3c078ea6c34"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}, "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": []}, "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": []}, "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": []}}, "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": 1726597448.44278, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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 impressions,\n clicks,\n spend,\n reach,\n conversion,\n cost_per_conversion,\n conversion_rate,\n likes,\n comments,\n shares,\n profile_visits,\n follows,\n video_play_actions,\n video_watched_2_s,\n video_watched_6_s,\n video_views_p_25,\n video_views_p_50,\n video_views_p_75,\n average_video_play,\n average_video_play_per_user\n\n {{ fivetran_utils.fill_pass_through_columns('tiktok_ads__campaign_hourly_passthrough_metrics') }}\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.fivetran_utils.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\".\"ad_reporting_integration_tests_7_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 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 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 impressions,\n clicks,\n spend,\n reach,\n conversion,\n cost_per_conversion,\n conversion_rate,\n likes,\n comments,\n shares,\n profile_visits,\n follows,\n video_play_actions,\n video_watched_2_s,\n video_watched_6_s,\n video_views_p_25,\n video_views_p_50,\n video_views_p_75,\n average_video_play,\n average_video_play_per_user\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": "ad_reporting_integration_tests_7_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": "07a491825cd0f0884c4fcbb3482ed94e4bcc63b8f62976b92823068823edde43"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}, "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": []}, "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": []}, "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": []}}, "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": 1726597448.4419909, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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 impressions, \n clicks, \n spend, \n reach, \n conversion, \n cost_per_conversion, \n conversion_rate, \n likes, \n comments, \n shares, \n profile_visits,\n follows, \n video_play_actions, \n video_watched_2_s, \n video_watched_6_s, \n video_views_p_25, \n video_views_p_50,\n video_views_p_75, \n average_video_play, \n average_video_play_per_user\n\n {{ fivetran_utils.fill_pass_through_columns('tiktok_ads__ad_group_hourly_passthrough_metrics') }}\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.fivetran_utils.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\".\"ad_reporting_integration_tests_7_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 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 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 impressions, \n clicks, \n spend, \n reach, \n conversion, \n cost_per_conversion, \n conversion_rate, \n likes, \n comments, \n shares, \n profile_visits,\n follows, \n video_play_actions, \n video_watched_2_s, \n video_watched_6_s, \n video_views_p_25, \n video_views_p_50,\n video_views_p_75, \n average_video_play, \n average_video_play_per_user\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": "ad_reporting_integration_tests_7_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": 1726597448.439275, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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 \"postgres\".\"ad_reporting_integration_tests_7_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 TEXT) 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 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 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": "postgres", "schema": "ad_reporting_integration_tests_7_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": "af14d4be44964072d467f3a7798ce81aa23eaa4cdd49cb5465921483fc710c47"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}, "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": []}, "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": []}, "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": []}}, "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": 1726597448.4412339, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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 impressions, \n clicks, \n spend, \n reach, \n conversion, \n cost_per_conversion, \n conversion_rate, \n likes, \n comments, \n shares, \n profile_visits,\n follows, \n video_play_actions, \n video_watched_2_s, \n video_watched_6_s, \n video_views_p_25, \n video_views_p_50,\n video_views_p_75, \n average_video_play, \n average_video_play_per_user\n\n {{ fivetran_utils.fill_pass_through_columns('tiktok_ads__ad_hourly_passthrough_metrics') }}\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.fivetran_utils.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\".\"ad_reporting_integration_tests_7_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 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 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 impressions, \n clicks, \n spend, \n reach, \n conversion, \n cost_per_conversion, \n conversion_rate, \n likes, \n comments, \n shares, \n profile_visits,\n follows, \n video_play_actions, \n video_watched_2_s, \n video_watched_6_s, \n video_views_p_25, \n video_views_p_50,\n video_views_p_75, \n average_video_play, \n average_video_play_per_user\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": "ad_reporting_integration_tests_7_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": 1726597448.4384792, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.440008, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.4404259, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597446.442312, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7\".\"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": "ad_reporting_integration_tests_7_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": 1726597446.4462872, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7\".\"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": "ad_reporting_integration_tests_7_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": 1726597446.450788, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7\".\"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": "ad_reporting_integration_tests_7_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": 1726597446.45589, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7\".\"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": "ad_reporting_integration_tests_7_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": 1726597446.460213, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7\".\"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": "ad_reporting_integration_tests_7_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": 1726597446.4645052, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7\".\"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": "ad_reporting_integration_tests_7_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": 1726597446.46842, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7\".\"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": {"database": "postgres", "schema": "ad_reporting_integration_tests_7_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": 1726597448.4838212, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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__creative_history": {"database": "postgres", "schema": "ad_reporting_integration_tests_7_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": 1726597448.483319, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.481156, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.478795, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "4f782fcc174e56d38de202afc7076fd981329b65d0b8ce95516d813f57619870"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "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": 1726597448.479249, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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 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\".\"ad_reporting_integration_tests_7_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\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 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": "ad_reporting_integration_tests_7_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": "8e4ee521cdfa1cb13be4ddbca5763604495f8154abc71c6954932468a6bbfce4"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "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": 1726597448.480533, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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 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\".\"ad_reporting_integration_tests_7_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\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 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": "ad_reporting_integration_tests_7_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": 1726597446.579067, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7\".\"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": "ad_reporting_integration_tests_7_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": 1726597446.5838442, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7\".\"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": "ad_reporting_integration_tests_7_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": 1726597446.587787, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7\".\"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": "ad_reporting_integration_tests_7_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": 1726597446.591736, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7\".\"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__creative_history_tmp": {"database": "postgres", "schema": "ad_reporting_integration_tests_7_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": 1726597446.595665, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7\".\"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__account_history_tmp": {"database": "postgres", "schema": "ad_reporting_integration_tests_7_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": 1726597446.6004338, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7\".\"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": "ad_reporting_integration_tests_7_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": "ce4d153720c25a4d97969cd1fee5c04592c8d865c9600d51ac3685d0e7c5669b"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "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": 1726597448.535399, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\n {{ fivetran_utils.fill_pass_through_columns('snapchat_ads__ad_squad_hourly_passthrough_metrics') }}\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.fivetran_utils.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\".\"ad_reporting_integration_tests_7_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 \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\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": "ad_reporting_integration_tests_7_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": 1726597448.533128, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.53471, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "6910b0c0ad16621354a5323526f2c934955373d3835b677510bd9ad9d204dbc8"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "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": 1726597448.534282, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\n {{ fivetran_utils.fill_pass_through_columns('snapchat_ads__ad_hourly_passthrough_metrics') }}\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.fivetran_utils.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\".\"ad_reporting_integration_tests_7_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 \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\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": "ad_reporting_integration_tests_7_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": 1726597448.5370219, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.537618, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.532616, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "f5ccbf9ccd928646b0d2f64521412e2a0b65bcecba86e4daa115fcfceec6e412"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "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": 1726597448.5364769, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\n {{ fivetran_utils.fill_pass_through_columns('snapchat_ads__campaign_hourly_report_passthrough_metrics') }}\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.fivetran_utils.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\".\"ad_reporting_integration_tests_7_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 \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\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": "ad_reporting_integration_tests_7_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": 1726597448.53582, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597446.694108, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7\".\"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": "ad_reporting_integration_tests_7_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": 1726597446.69814, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7\".\"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": "ad_reporting_integration_tests_7_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": 1726597446.703236, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7\".\"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": "ad_reporting_integration_tests_7_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": 1726597446.707167, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7\".\"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": "ad_reporting_integration_tests_7_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": 1726597446.711152, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7\".\"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": "ad_reporting_integration_tests_7_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": 1726597446.715147, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7\".\"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": "ad_reporting_integration_tests_7_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": 1726597446.7200582, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7\".\"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": "ad_reporting_integration_tests_7_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": 1726597446.7239082, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7\".\"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": "ad_reporting_integration_tests_7_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": 1726597446.72796, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7\".\"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": "ad_reporting_integration_tests_7_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": "307e1bce107c79c9820bc5030a61834e1a1b28334345d10fe813a6eac8f0379c"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "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": 1726597448.5851169, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='microsoft_ads__ad_passthrough_metrics', transform = 'sum') }}\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.fivetran_utils.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\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_microsoft_ads__ad_daily_report\"\n\n), \n\nads as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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\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": "ad_reporting_integration_tests_7_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": "c4511624567f98d0a3dacedcf6fbe0e1d176a720ac1303d31223dc7964b29cef"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "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": 1726597448.584447, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='microsoft_ads__ad_group_passthrough_metrics', transform = 'sum') }}\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.fivetran_utils.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\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_microsoft_ads__ad_group_daily_report\"\n\n), \n\nad_groups as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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\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": "ad_reporting_integration_tests_7_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": "bbb2ec37bcb99f5f21d93deb77f1f6050e747db88f7b916d56bb0f386182e7ee"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "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": 1726597448.586516, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='microsoft_ads__keyword_passthrough_metrics', transform = 'sum') }}\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.fivetran_utils.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\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_microsoft_ads__keyword_daily_report\"\n\n), \n\nkeywords as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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\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": "ad_reporting_integration_tests_7_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": "0a448a3a7cd964c8e08f12b791ee61c8fc2b19ef99f67568c81a905c4adb3f08"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "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": 1726597448.587882, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='microsoft_ads__ad_passthrough_metrics', transform = 'sum') }}\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.fivetran_utils.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\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_microsoft_ads__ad_daily_report\"\n\n), \n\nads as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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\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": "ad_reporting_integration_tests_7_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": "abc820b727ed7c5676ac81a5311bdc26b981c9682fe00b9a8516bd8826829e23"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "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": 1726597448.583883, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='microsoft_ads__account_passthrough_metrics', transform = 'sum') }}\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.fivetran_utils.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\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_microsoft_ads__account_daily_report\"\n\n), \n\naccounts as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_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\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": "ad_reporting_integration_tests_7_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": "07ed3c022dce76f4b3a3b06672b627a0fff5c9e3354c21b3560c28aafb5a702f"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "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": 1726597448.587162, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='microsoft_ads__search_passthrough_metrics', transform = 'sum') }}\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.fivetran_utils.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\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_microsoft_ads__search_daily_report\"\n\n), \n\nkeywords as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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\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": "ad_reporting_integration_tests_7_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": "d704b22a72320743b012329ab7a73ba459d2c932ff32d5f63ddfcd091d207d7b"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "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": 1726597448.58583, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='microsoft_ads__campaign_passthrough_metrics', transform = 'sum') }}\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.fivetran_utils.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\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_microsoft_ads__campaign_daily_report\"\n\n), \n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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\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": "postgres", "schema": "ad_reporting_integration_tests_7_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": "f6361053ee7e57c9cbfe93579649960043724da9b46e68bd8f14deeee6b43b9f"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "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": 1726597448.687943, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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 {{ fivetran_utils.fill_pass_through_columns('twitter_ads__campaign_report_passthrough_metrics') }}\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.fivetran_utils.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\".\"ad_reporting_integration_tests_7_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 \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\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": "ad_reporting_integration_tests_7_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": 1726597448.685908, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "0ad901a1cb8eab6d6d0e73ef9d8c90747262fd15f30f6f3e3663cf021b1c98f4"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "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": 1726597448.6884649, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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 {{ fivetran_utils.fill_pass_through_columns('twitter_ads__line_item_report_passthrough_metrics') }}\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.fivetran_utils.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\".\"ad_reporting_integration_tests_7_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 \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\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": "ad_reporting_integration_tests_7_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": 1726597448.685088, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": "7c0c93ae221a2f154c0918ac2e473b9e890531db987d175b3f0deb29a6e25384"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": []}}, "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": 1726597448.686881, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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 {{ fivetran_utils.fill_pass_through_columns('twitter_ads__promoted_tweet_report_passthrough_metrics') }}\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.fivetran_utils.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\".\"ad_reporting_integration_tests_7_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\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\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": "ad_reporting_integration_tests_7_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": 1726597448.689441, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.6843562, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.687445, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.686396, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597446.940672, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7\".\"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": "ad_reporting_integration_tests_7_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": 1726597446.9453208, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7\".\"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": "ad_reporting_integration_tests_7_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": 1726597446.9495978, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7\".\"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": "ad_reporting_integration_tests_7_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": 1726597446.984326, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7\".\"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": "ad_reporting_integration_tests_7_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": 1726597446.99186, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7\".\"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": "ad_reporting_integration_tests_7_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": 1726597446.99707, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7\".\"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": "postgres", "schema": "ad_reporting_integration_tests_7_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": 1726597447.0226848, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7\".\"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": "ad_reporting_integration_tests_7_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": 1726597447.043909, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7\".\"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": "ad_reporting_integration_tests_7_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": 1726597447.062023, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7\".\"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": "ad_reporting_integration_tests_7_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": "275c64d11ee76ec7b7126f38316cb11587618859c5621f37337389c87751b0e5"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": 1726597448.740884, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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 {{ fivetran_utils.persist_pass_through_columns('linkedin_ads__campaign_passthrough_metrics', transform='sum') }}\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.fivetran_utils.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\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_linkedin_ads__campaign_group_history\"\n where is_latest_version\n),\n\ncampaign as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_linkedin_ads__campaign_history\"\n where is_latest_version\n),\n\naccount as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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 , sum(coalesce(external_website_conversions, 0)) as external_website_conversions\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 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": "ad_reporting_integration_tests_7_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": "6efae5347af56543ef45e50a6c86b303c61f95a8b0c2917e750c38b3d77db22b"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": 1726597448.7417789, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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 {{ fivetran_utils.persist_pass_through_columns('linkedin_ads__creative_passthrough_metrics', transform='sum') }}\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.fivetran_utils.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\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_linkedin_ads__creative_history\"\n where is_latest_version\n),\n\ncampaign as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_linkedin_ads__campaign_history\"\n where is_latest_version\n),\n\ncampaign_group as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_linkedin_ads__campaign_group_history\"\n where is_latest_version\n),\n\naccount as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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 , sum(coalesce(external_website_conversions, 0)) as external_website_conversions\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 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": "ad_reporting_integration_tests_7_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": "0b14d73f330a966c3603f038568b7672cf7fe35985712d5384c5c47ac219c908"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": 1726597448.740217, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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 {{ fivetran_utils.persist_pass_through_columns('linkedin_ads__campaign_passthrough_metrics', transform='sum') }}\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.fivetran_utils.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\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_linkedin_ads__campaign_history\"\n where is_latest_version\n),\n\ncampaign_group as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_linkedin_ads__campaign_group_history\"\n where is_latest_version\n),\n\naccount as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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 , sum(coalesce(external_website_conversions, 0)) as external_website_conversions\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 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": "ad_reporting_integration_tests_7_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": "c9f9fa8774390898c4aa476ff247906fbd7d5a671f909aa9198bc112ae6dd27b"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": 1726597448.739007, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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 {{ fivetran_utils.persist_pass_through_columns('linkedin_ads__campaign_passthrough_metrics', transform='sum') }}\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 {{ 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.fivetran_utils.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\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_linkedin_ads__account_history\"\n where is_latest_version\n),\n\ncampaign as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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 , sum(coalesce(external_website_conversions, 0)) as external_website_conversions\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 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": "ad_reporting_integration_tests_7_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": "9a80e26a0d6b5c1925e26b134f914e0919acdf5dbdb6aba41aad4e93855f1c40"}, "config": {"enabled": true, "alias": null, "schema": "ad_reporting_dev", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "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": 1726597448.7426078, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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 {{ fivetran_utils.persist_pass_through_columns('linkedin_ads__creative_passthrough_metrics', transform='sum') }}\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.fivetran_utils.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\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_linkedin_ads__creative_history\"\n where is_latest_version\n),\n\ncampaign as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_linkedin_ads__campaign_history\"\n where is_latest_version\n),\n\ncampaign_group as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_ad_reporting_dev\".\"stg_linkedin_ads__campaign_group_history\"\n where is_latest_version\n),\n\naccount as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_7_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\".\"ad_reporting_integration_tests_7_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 , sum(coalesce(external_website_conversions, 0)) as external_website_conversions\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 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": "ad_reporting_integration_tests_7_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": 1726597447.325671, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.326821, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.3379169, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.3388312, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.3413482, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.342359, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.3449972, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.346025, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.348664, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.3496041, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.351991, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.352992, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.355435, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.356331, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.358618, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.359636, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.362155, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.363074, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.365361, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.366334, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.368903, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.3699598, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.390359, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.3913019, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.392184, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.3950841, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.3960168, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.396984, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.399658, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.400697, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.401592, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.404841, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.405761, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.406739, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.409048, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.4100401, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.411273, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.412458, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.435808, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.436897, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.437801, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.438729, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.441379, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.4422731, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.443147, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.444042, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.446378, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.447306, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.4482281, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.4493198, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.451846, "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": "postgres", "schema": "ad_reporting_integration_tests_7_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": 1726597447.452842, "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": "postgres", "schema": "ad_reporting_integration_tests_7_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": 1726597447.4537039, "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": "postgres", "schema": "ad_reporting_integration_tests_7_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": 1726597447.45585, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.456722, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.457592, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.459987, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.460947, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.461857, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.46327, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.46461, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.480118, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.481198, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.4821491, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.48462, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.485489, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.486361, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.488533, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.4893901, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.490253, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.492341, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.493593, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.494702, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.4972422, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.498225, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.499444, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.500386, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.569958, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.5715342, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.5725398, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.573785, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.5761678, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.577075, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.5784588, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.5810518, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.581923, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.5828018, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.585121, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.586005, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.586884, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.589827, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.590749, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.592412, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.594762, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.5957341, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.596639, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.623395, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.624371, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.62736, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.628315, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.630723, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.6316428, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.6340349, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.635056, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.6374972, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.638446, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.640876, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.64212, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.644706, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.64563, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.648266, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.649198, "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\".\"ad_reporting_integration_tests_7_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.google_ads.not_null_google_ads__url_report_base_url.e3578c0f72": {"database": "postgres", "schema": "ad_reporting_integration_tests_7_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": 1726597447.667868, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.6692429, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.671675, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.67261, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.6749089, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.675801, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.677978, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.678894, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.681304, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.68223, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.6845272, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.685441, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.708375, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.709399, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.711884, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.7127712, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.7153301, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.716218, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.718536, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.719448, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.721737, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.722643, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.724837, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.725756, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.727901, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.7288, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.7310112, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.7319171, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.734217, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.73513, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.736062, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.738431, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.739336, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.8125482, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.81352, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.8144588, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.8167071, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.817852, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.81899, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.821721, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.8226712, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.823563, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.824437, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.82671, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.827602, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.828539, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.831329, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.832246, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.833153, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.857158, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.858187, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.8591151, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.861622, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.86254, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.864869, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.8658051, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.868196, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.869122, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.8713799, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.872257, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.874478, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.875396, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.878209, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.879164, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.89594, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.8971899, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.899452, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.900328, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.902776, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.9037728, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.906378, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.907346, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.909919, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.910861, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.913376, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.91433, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.929966, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.931148, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.932041, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.9342542, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.935115, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.9359732, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.9382558, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.939363, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.94028, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.9428961, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.9438012, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.944742, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.946965, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.947984, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.949235, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.9504461, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.96755, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.9685571, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.970904, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.971804, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.97402, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.974936, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.9771671, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.978059, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.978951, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.9813042, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.9824388, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.984725, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.985635, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.9879308, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.9888341, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.989735, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.992405, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.993283, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.994168, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.9963698, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.997251, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597447.998222, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.0005639, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.0015948, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.0025191, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.08039, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.081393, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.082391, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.0848489, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.08587, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.086786, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.089055, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.089967, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.0908659, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.093086, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.093974, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.094888, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.097285, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.09816, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.09902, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.101227, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.102164, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.10314, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.11857, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.1195781, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.1218948, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.122904, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.125066, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.125974, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.1282072, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.129111, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.131262, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.132184, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.134458, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.1353788, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.137868, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.1390688, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.241874, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.242862, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.2437692, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.246186, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.247099, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.247997, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.250321, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.251188, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.252108, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.254503, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.255431, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.2568908, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.257772, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.260194, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.2611, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.262031, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.264426, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.265364, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.266309, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.268694, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.269558, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.2704608, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.2730691, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.273948, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.2747982, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.2772942, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.2783391, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.2806919, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.28197, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.282905, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.3022761, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.303348, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.3060899, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.307113, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.309566, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.310567, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.313023, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.3139288, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.314964, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.317307, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.318174, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.319135, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.321194, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.322165, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.324192, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.3252401, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.3263, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.328632, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.329536, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.330423, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.3328798, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.333745, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.3363042, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.337267, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.338142, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.4433138, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.444365, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.447042, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.447964, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.450243, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.4511738, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.453417, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.45431, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.456835, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.4577448, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.4586549, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.461036, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.461932, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.46293, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.4652119, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.4662, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.467086, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.484319, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.485263, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.486347, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.489019, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.489939, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.490827, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.4931479, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.4940631, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.495064, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.4973361, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.4983711, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.499279, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.501468, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.5024781, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.5033941, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.505674, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.506577, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.507464, "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\".\"ad_reporting_integration_tests_7_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.snapchat_ads_source.not_null_stg_snapchat_ads__ad_account_history__fivetran_synced.2d5dd77824": {"database": "postgres", "schema": "ad_reporting_integration_tests_7_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": 1726597448.538152, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.5391638, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.540148, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.542467, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.54407, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.5449688, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.547292, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.5482152, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.549115, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.551418, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.552316, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.553212, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.555437, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.5563269, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.5572321, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.559457, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.5603578, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.5612512, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.563456, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.564337, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.5653288, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.5675619, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.5685492, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.569437, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.571626, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.572523, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.5883899, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.589379, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.5916731, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.592586, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.5948129, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.5957298, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.59794, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.599016, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.601603, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.6025448, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.604874, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.6057658, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.608172, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.609757, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.6900108, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.6910248, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.6938, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.694695, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.696983, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.6978712, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.700233, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.701157, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.703418, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.704333, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.705226, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.706122, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.7083678, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.709261, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.7101598, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.7124119, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.713322, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.7141771, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.715116, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.717383, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.718391, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.719263, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.7201421, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.7224488, "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": "postgres", "schema": "ad_reporting_integration_tests_7_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": 1726597448.723346, "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": "postgres", "schema": "ad_reporting_integration_tests_7_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": 1726597448.724235, "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": "postgres", "schema": "ad_reporting_integration_tests_7_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": 1726597448.726458, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.727363, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.743121, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.744104, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.745013, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.74734, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.748235, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.749119, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.751393, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.752272, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.753151, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.755296, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.756541, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.757866, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.760549, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.761754, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.7631419, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7_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": 1726597448.764343, "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\".\"ad_reporting_integration_tests_7_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": "ad_reporting_integration_tests_7", "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\".\"ad_reporting_integration_tests_7\".\"microsoft_ads_account_history_data\"", "created_at": 1726597448.770041}, "source.microsoft_ads_source.microsoft_ads.account_performance_daily_report": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"microsoft_ads_account_performance_daily_report_data\"", "created_at": 1726597448.7707741}, "source.microsoft_ads_source.microsoft_ads.ad_group_history": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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\".\"ad_reporting_integration_tests_7\".\"microsoft_ads_ad_group_history_data\"", "created_at": 1726597448.770884}, "source.microsoft_ads_source.microsoft_ads.ad_group_performance_daily_report": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"microsoft_ads_ad_group_performance_daily_report_data\"", "created_at": 1726597448.770994}, "source.microsoft_ads_source.microsoft_ads.ad_history": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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\".\"ad_reporting_integration_tests_7\".\"microsoft_ads_ad_history_data\"", "created_at": 1726597448.77109}, "source.microsoft_ads_source.microsoft_ads.ad_performance_daily_report": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"microsoft_ads_ad_performance_daily_report_data\"", "created_at": 1726597448.771198}, "source.microsoft_ads_source.microsoft_ads.campaign_history": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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\".\"ad_reporting_integration_tests_7\".\"microsoft_ads_campaign_history_data\"", "created_at": 1726597448.771296}, "source.microsoft_ads_source.microsoft_ads.campaign_performance_daily_report": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"microsoft_ads_campaign_performance_daily_report_data\"", "created_at": 1726597448.7714088}, "source.microsoft_ads_source.microsoft_ads.keyword_history": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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\".\"ad_reporting_integration_tests_7\".\"microsoft_ads_keyword_history_data\"", "created_at": 1726597448.7715042}, "source.microsoft_ads_source.microsoft_ads.keyword_performance_daily_report": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"microsoft_ads_keyword_performance_daily_report_data\"", "created_at": 1726597448.7717261}, "source.microsoft_ads_source.microsoft_ads.search_query_performance_daily_report": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"microsoft_ads_search_performance_daily_report_data\"", "created_at": 1726597448.771839}, "source.reddit_ads_source.reddit_ads.account": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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\".\"ad_reporting_integration_tests_7\".\"reddit_ads_account_data\"", "created_at": 1726597448.77194}, "source.reddit_ads_source.reddit_ads.account_report": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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\".\"ad_reporting_integration_tests_7\".\"reddit_ads_account_report_data\"", "created_at": 1726597448.772052}, "source.reddit_ads_source.reddit_ads.ad": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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\".\"ad_reporting_integration_tests_7\".\"reddit_ads_ad_data\"", "created_at": 1726597448.772152}, "source.reddit_ads_source.reddit_ads.ad_report": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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\".\"ad_reporting_integration_tests_7\".\"reddit_ads_ad_report_data\"", "created_at": 1726597448.772267}, "source.reddit_ads_source.reddit_ads.ad_group": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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\".\"ad_reporting_integration_tests_7\".\"reddit_ads_ad_group_data\"", "created_at": 1726597448.772371}, "source.reddit_ads_source.reddit_ads.ad_group_report": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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\".\"ad_reporting_integration_tests_7\".\"reddit_ads_ad_group_report_data\"", "created_at": 1726597448.772481}, "source.reddit_ads_source.reddit_ads.campaign": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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\".\"ad_reporting_integration_tests_7\".\"reddit_ads_campaign_data\"", "created_at": 1726597448.772575}, "source.reddit_ads_source.reddit_ads.campaign_report": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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\".\"ad_reporting_integration_tests_7\".\"reddit_ads_campaign_report_data\"", "created_at": 1726597448.772712}, "source.amazon_ads_source.amazon_ads.ad_group_history": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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\".\"ad_reporting_integration_tests_7\".\"amazon_ads_ad_group_history_data\"", "created_at": 1726597448.772811}, "source.amazon_ads_source.amazon_ads.ad_group_level_report": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"amazon_ads_ad_group_level_report_data\"", "created_at": 1726597448.772903}, "source.amazon_ads_source.amazon_ads.advertised_product_report": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"amazon_ads_advertised_product_report_data\"", "created_at": 1726597448.773006}, "source.amazon_ads_source.amazon_ads.campaign_history": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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\".\"ad_reporting_integration_tests_7\".\"amazon_ads_campaign_history_data\"", "created_at": 1726597448.773113}, "source.amazon_ads_source.amazon_ads.campaign_level_report": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"amazon_ads_campaign_level_report_data\"", "created_at": 1726597448.7732139}, "source.amazon_ads_source.amazon_ads.keyword_history": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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\".\"ad_reporting_integration_tests_7\".\"amazon_ads_keyword_history_data\"", "created_at": 1726597448.773314}, "source.amazon_ads_source.amazon_ads.portfolio_history": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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\".\"ad_reporting_integration_tests_7\".\"amazon_ads_portfolio_history_data\"", "created_at": 1726597448.773416}, "source.amazon_ads_source.amazon_ads.product_ad_history": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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\".\"ad_reporting_integration_tests_7\".\"amazon_ads_product_ad_history_data\"", "created_at": 1726597448.77351}, "source.amazon_ads_source.amazon_ads.profile": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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\".\"ad_reporting_integration_tests_7\".\"amazon_ads_profile_data\"", "created_at": 1726597448.773607}, "source.amazon_ads_source.amazon_ads.targeting_keyword_report": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"amazon_ads_targeting_keyword_report_data\"", "created_at": 1726597448.773729}, "source.amazon_ads_source.amazon_ads.search_term_ad_keyword_report": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"amazon_ads_search_term_ad_keyword_report_data\"", "created_at": 1726597448.7738292}, "source.linkedin_source.linkedin_ads.ad_analytics_by_creative": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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\".\"ad_reporting_integration_tests_7\".\"linkedin_ad_analytics_by_creative_data\"", "created_at": 1726597448.7739289}, "source.linkedin_source.linkedin_ads.creative_history": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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 re-directed 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\".\"ad_reporting_integration_tests_7\".\"linkedin_ad_creative_history_data\"", "created_at": 1726597448.774027}, "source.linkedin_source.linkedin_ads.campaign_history": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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\".\"ad_reporting_integration_tests_7\".\"linkedin_ad_campaign_history_data\"", "created_at": 1726597448.774146}, "source.linkedin_source.linkedin_ads.campaign_group_history": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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\".\"ad_reporting_integration_tests_7\".\"linkedin_ad_campaign_group_history_data\"", "created_at": 1726597448.774241}, "source.linkedin_source.linkedin_ads.account_history": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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\".\"ad_reporting_integration_tests_7\".\"linkedin_ad_account_history_data\"", "created_at": 1726597448.774341}, "source.linkedin_source.linkedin_ads.ad_analytics_by_campaign": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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\".\"ad_reporting_integration_tests_7\".\"linkedin_ad_analytics_by_campaign_data\"", "created_at": 1726597448.774436}, "source.google_ads_source.google_ads.ad_stats": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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\".\"ad_reporting_integration_tests_7\".\"google_ads_ad_stats_data\"", "created_at": 1726597448.774545}, "source.google_ads_source.google_ads.ad_history": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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\".\"ad_reporting_integration_tests_7\".\"google_ads_ad_history_data\"", "created_at": 1726597448.7746391}, "source.google_ads_source.google_ads.ad_group_history": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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\".\"ad_reporting_integration_tests_7\".\"google_ads_ad_group_history_data\"", "created_at": 1726597448.774732}, "source.google_ads_source.google_ads.campaign_history": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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\".\"ad_reporting_integration_tests_7\".\"google_ads_campaign_history_data\"", "created_at": 1726597448.774855}, "source.google_ads_source.google_ads.account_history": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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\".\"ad_reporting_integration_tests_7\".\"google_ads_account_history_data\"", "created_at": 1726597448.774944}, "source.google_ads_source.google_ads.ad_group_criterion_history": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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\".\"ad_reporting_integration_tests_7\".\"google_ads_ad_group_criterion_history_data\"", "created_at": 1726597448.7750359}, "source.google_ads_source.google_ads.ad_group_stats": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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\".\"ad_reporting_integration_tests_7\".\"google_ads_ad_group_stats_data\"", "created_at": 1726597448.7751338}, "source.google_ads_source.google_ads.campaign_stats": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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\".\"ad_reporting_integration_tests_7\".\"google_ads_campaign_stats_data\"", "created_at": 1726597448.7752268}, "source.google_ads_source.google_ads.keyword_stats": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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\".\"ad_reporting_integration_tests_7\".\"google_ads_keyword_stats_data\"", "created_at": 1726597448.775323}, "source.google_ads_source.google_ads.account_stats": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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\".\"ad_reporting_integration_tests_7\".\"google_ads_account_stats_data\"", "created_at": 1726597448.775417}, "source.apple_search_ads_source.apple_search_ads.ad_group_history": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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\".\"ad_reporting_integration_tests_7\".\"apple_search_ad_group_history_data\"", "created_at": 1726597448.775512}, "source.apple_search_ads_source.apple_search_ads.ad_group_report": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": []}, "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\".\"ad_reporting_integration_tests_7\".\"apple_search_ad_group_report_data\"", "created_at": 1726597448.775604}, "source.apple_search_ads_source.apple_search_ads.ad_history": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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\".\"ad_reporting_integration_tests_7\".\"apple_search_ad_history_data\"", "created_at": 1726597448.7756958}, "source.apple_search_ads_source.apple_search_ads.ad_level_report": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": []}, "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\".\"ad_reporting_integration_tests_7\".\"apple_search_ad_report_data\"", "created_at": 1726597448.775789}, "source.apple_search_ads_source.apple_search_ads.campaign_history": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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\".\"ad_reporting_integration_tests_7\".\"apple_search_campaign_history_data\"", "created_at": 1726597448.775883}, "source.apple_search_ads_source.apple_search_ads.campaign_report": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": []}, "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\".\"ad_reporting_integration_tests_7\".\"apple_search_campaign_report_data\"", "created_at": 1726597448.775975}, "source.apple_search_ads_source.apple_search_ads.keyword_history": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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\".\"ad_reporting_integration_tests_7\".\"apple_search_keyword_history_data\"", "created_at": 1726597448.776087}, "source.apple_search_ads_source.apple_search_ads.keyword_report": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": []}, "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\".\"ad_reporting_integration_tests_7\".\"apple_search_keyword_report_data\"", "created_at": 1726597448.7761788}, "source.apple_search_ads_source.apple_search_ads.organization": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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\".\"ad_reporting_integration_tests_7\".\"apple_search_organization_data\"", "created_at": 1726597448.776269}, "source.apple_search_ads_source.apple_search_ads.search_term_report": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": []}, "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\".\"ad_reporting_integration_tests_7\".\"apple_search_search_term_report_data\"", "created_at": 1726597448.776374}, "source.pinterest_source.pinterest_ads.pin_promotion_report": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"pinterest_pin_promotion_report_data\"", "created_at": 1726597448.776472}, "source.pinterest_source.pinterest_ads.pin_promotion_history": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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\".\"ad_reporting_integration_tests_7\".\"pinterest_pin_promotion_history_data\"", "created_at": 1726597448.776565}, "source.pinterest_source.pinterest_ads.campaign_history": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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\".\"ad_reporting_integration_tests_7\".\"pinterest_campaign_history_data\"", "created_at": 1726597448.776662}, "source.pinterest_source.pinterest_ads.ad_group_history": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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\".\"ad_reporting_integration_tests_7\".\"pinterest_ad_group_history_data\"", "created_at": 1726597448.77676}, "source.pinterest_source.pinterest_ads.ad_group_report": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"pinterest_ad_group_report_data\"", "created_at": 1726597448.776858}, "source.pinterest_source.pinterest_ads.advertiser_history": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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\".\"ad_reporting_integration_tests_7\".\"pinterest_advertiser_history_data\"", "created_at": 1726597448.776951}, "source.pinterest_source.pinterest_ads.advertiser_report": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"pinterest_advertiser_report_data\"", "created_at": 1726597448.777042}, "source.pinterest_source.pinterest_ads.campaign_report": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"pinterest_campaign_report_data\"", "created_at": 1726597448.777138}, "source.pinterest_source.pinterest_ads.keyword_history": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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\".\"ad_reporting_integration_tests_7\".\"pinterest_keyword_history_data\"", "created_at": 1726597448.7772532}, "source.pinterest_source.pinterest_ads.keyword_report": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"pinterest_keyword_report_data\"", "created_at": 1726597448.7773519}, "source.tiktok_ads_source.tiktok_ads.advertiser": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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\".\"ad_reporting_integration_tests_7\".\"tiktok_advertiser_data\"", "created_at": 1726597448.7774668}, "source.tiktok_ads_source.tiktok_ads.campaign_history": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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\".\"ad_reporting_integration_tests_7\".\"tiktok_campaign_history_data\"", "created_at": 1726597448.777566}, "source.tiktok_ads_source.tiktok_ads.adgroup_history": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": "\"postgres\".\"ad_reporting_integration_tests_7\".\"tiktok_adgroup_history_data\"", "created_at": 1726597448.77774}, "source.tiktok_ads_source.tiktok_ads.ad_history": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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\".\"ad_reporting_integration_tests_7\".\"tiktok_ad_history_data\"", "created_at": 1726597448.777874}, "source.tiktok_ads_source.tiktok_ads.ad_report_hourly": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": "The number of times your ad achieved an outcome, based on the objective and settings you selected. (The total count is based on when the conversion actually happened.)\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": []}, "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": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"tiktok_ad_report_hourly_data\"", "created_at": 1726597448.7780108}, "source.tiktok_ads_source.tiktok_ads.campaign_report_hourly": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": "The number of times your ad achieved an outcome, based on the objective and settings you selected. (The total count is based on when the conversion actually happened.)\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": []}, "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": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"tiktok_campaign_report_hourly_data\"", "created_at": 1726597448.778147}, "source.tiktok_ads_source.tiktok_ads.adgroup_report_hourly": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": "The number of times your ad achieved an outcome, based on the objective and settings you selected. (The total count is based on when the conversion actually happened.)\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.)", "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": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"tiktok_adgroup_report_hourly_data\"", "created_at": 1726597448.778285}, "source.facebook_ads_source.facebook_ads.account_history": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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\".\"ad_reporting_integration_tests_7\".\"facebook_ads_account_history_data\"", "created_at": 1726597448.778381}, "source.facebook_ads_source.facebook_ads.ad_history": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"facebook_ads_ad_history_data\"", "created_at": 1726597448.778473}, "source.facebook_ads_source.facebook_ads.ad_set_history": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"facebook_ads_ad_set_history_data\"", "created_at": 1726597448.778594}, "source.facebook_ads_source.facebook_ads.basic_ad": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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\".\"ad_reporting_integration_tests_7\".\"facebook_ads_basic_ad_data\"", "created_at": 1726597448.778691}, "source.facebook_ads_source.facebook_ads.campaign_history": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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\".\"ad_reporting_integration_tests_7\".\"facebook_ads_campaign_history_data\"", "created_at": 1726597448.778789}, "source.facebook_ads_source.facebook_ads.creative_history": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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\".\"ad_reporting_integration_tests_7\".\"facebook_ads_creative_history_data\"", "created_at": 1726597448.7788942}, "source.snapchat_ads_source.snapchat_ads.ad_account_history": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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\".\"ad_reporting_integration_tests_7\".\"snapchat_ad_account_history_data\"", "created_at": 1726597448.778987}, "source.snapchat_ads_source.snapchat_ads.ad_history": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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\".\"ad_reporting_integration_tests_7\".\"snapchat_ad_history_data\"", "created_at": 1726597448.779076}, "source.snapchat_ads_source.snapchat_ads.ad_hourly_report": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"snapchat_ad_hourly_report_data\"", "created_at": 1726597448.7791822}, "source.snapchat_ads_source.snapchat_ads.ad_squad_history": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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\".\"ad_reporting_integration_tests_7\".\"snapchat_ad_squad_history_data\"", "created_at": 1726597448.7792692}, "source.snapchat_ads_source.snapchat_ads.ad_squad_hourly_report": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"snapchat_ad_squad_hourly_report_data\"", "created_at": 1726597448.779375}, "source.snapchat_ads_source.snapchat_ads.campaign_history": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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\".\"ad_reporting_integration_tests_7\".\"snapchat_campaign_history_data\"", "created_at": 1726597448.779464}, "source.snapchat_ads_source.snapchat_ads.campaign_hourly_report": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"snapchat_campaign_hourly_report_data\"", "created_at": 1726597448.779567}, "source.snapchat_ads_source.snapchat_ads.creative_history": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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\".\"ad_reporting_integration_tests_7\".\"snapchat_creative_history_data\"", "created_at": 1726597448.7796779}, "source.snapchat_ads_source.snapchat_ads.creative_url_tag_history": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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\".\"ad_reporting_integration_tests_7\".\"snapchat_creative_url_tag_history_data\"", "created_at": 1726597448.779764}, "source.twitter_ads_source.twitter_ads.account_history": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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\".\"ad_reporting_integration_tests_7\".\"twitter_account_history_data\"", "created_at": 1726597448.779976}, "source.twitter_ads_source.twitter_ads.campaign_history": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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\".\"ad_reporting_integration_tests_7\".\"twitter_campaign_history_data\"", "created_at": 1726597448.7801878}, "source.twitter_ads_source.twitter_ads.line_item_history": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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\".\"ad_reporting_integration_tests_7\".\"twitter_line_item_history_data\"", "created_at": 1726597448.780324}, "source.twitter_ads_source.twitter_ads.promoted_tweet_history": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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\".\"ad_reporting_integration_tests_7\".\"twitter_promoted_tweet_history_data\"", "created_at": 1726597448.780441}, "source.twitter_ads_source.twitter_ads.tweet_url": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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\".\"ad_reporting_integration_tests_7\".\"twitter_tweet_url_data\"", "created_at": 1726597448.78054}, "source.twitter_ads_source.twitter_ads.promoted_tweet_report": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"twitter_promoted_tweet_report_data\"", "created_at": 1726597448.78064}, "source.twitter_ads_source.twitter_ads.tweet": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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\".\"ad_reporting_integration_tests_7\".\"twitter_tweet_data\"", "created_at": 1726597448.7807438}, "source.twitter_ads_source.twitter_ads.campaign_report": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"twitter_campaign_report_data\"", "created_at": 1726597448.780846}, "source.twitter_ads_source.twitter_ads.line_item_report": {"database": "postgres", "schema": "ad_reporting_integration_tests_7", "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": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"twitter_line_item_report_data\"", "created_at": 1726597448.78095}}, "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": 1726597442.958074, "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": 1726597442.958266, "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": 1726597442.9583628, "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": 1726597442.958455, "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": 1726597442.958546, "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": 1726597442.959848, "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": 1726597442.96015, "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": 1726597442.9607208, "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": 1726597442.96083, "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": 1726597442.968746, "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": 1726597442.9692001, "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": 1726597442.9694898, "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": 1726597442.9697611, "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": 1726597442.970164, "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": 1726597442.9706419, "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": 1726597442.970805, "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": 1726597442.971102, "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": 1726597442.971437, "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": 1726597442.972181, "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": 1726597442.9723651, "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": 1726597442.972646, "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": 1726597442.972882, "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": 1726597442.973365, "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": 1726597442.9736042, "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": 1726597442.97414, "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": 1726597442.974334, "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": 1726597442.974442, "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": 1726597442.9746041, "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": 1726597442.974729, "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": 1726597442.97508, "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": 1726597442.97573, "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": 1726597442.975866, "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": 1726597442.976135, "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": 1726597442.9762619, "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": 1726597442.976417, "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": 1726597442.977324, "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": 1726597442.977788, "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": 1726597442.978039, "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": 1726597442.978412, "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": 1726597442.97853, "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": 1726597442.979103, "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": 1726597442.9792519, "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": 1726597442.979365, "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": 1726597442.9798222, "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": 1726597442.9799712, "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": 1726597442.9801579, "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": 1726597442.980675, "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": 1726597442.983545, "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": 1726597442.9836931, "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": 1726597442.984135, "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": 1726597442.9844851, "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": 1726597442.985427, "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": 1726597442.985599, "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": 1726597442.985727, "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": 1726597442.985857, "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": 1726597442.985982, "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": 1726597442.986319, "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": 1726597442.986573, "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": 1726597442.986832, "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": 1726597442.9872231, "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 merge into {{ target.render() }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on DBT_INTERNAL_SOURCE.dbt_scd_id = DBT_INTERNAL_DEST.dbt_scd_id\n\n when matched\n and DBT_INTERNAL_DEST.dbt_valid_to is null\n and DBT_INTERNAL_SOURCE.dbt_change_type in ('update', 'delete')\n then update\n set dbt_valid_to = DBT_INTERNAL_SOURCE.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": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1726597442.987487, "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": 1726597442.990601, "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": 1726597442.990755, "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": 1726597442.9909492, "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, config, target_exists) %}\n {% set primary_key = config['unique_key'] %}\n {% set updated_at = config['updated_at'] %}\n {% set invalidate_hard_deletes = config.get('invalidate_hard_deletes', false) %}\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 }}.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.snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1726597442.9915688, "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": 1726597442.991717, "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": 1726597442.991869, "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": 1726597442.993068, "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, config, target_exists) %}\n {% set check_cols_config = config['check_cols'] %}\n {% set primary_key = config['unique_key'] %}\n {% set invalidate_hard_deletes = config.get('invalidate_hard_deletes', false) %}\n {% set updated_at = config.get('updated_at', 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": 1726597442.994348, "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": 1726597442.998558, "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": 1726597442.998843, "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": 1726597442.998998, "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": 1726597442.999082, "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": 1726597442.999211, "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": 1726597442.9993181, "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": 1726597442.999497, "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\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 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 dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n nullif({{ strategy.updated_at }}, {{ strategy.updated_at }}) as dbt_valid_to,\n {{ strategy.scd_id }} as 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 dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n {{ strategy.updated_at }} as 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.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 dbt_valid_from,\n {{ snapshot_get_time() }} as dbt_updated_at,\n {{ snapshot_get_time() }} as dbt_valid_to,\n snapshotted_data.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.snapshot_get_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1726597443.0002801, "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": 1726597443.000459, "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\n select *,\n {{ strategy.scd_id }} as dbt_scd_id,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n nullif({{ strategy.updated_at }}, {{ strategy.updated_at }}) as dbt_valid_to\n from (\n {{ sql }}\n ) sbq\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1726597443.0006888, "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": 1726597443.00108, "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": 1726597443.001622, "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": 1726597443.0020201, "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 {%- set config = model['config'] -%}\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 {% set strategy = strategy_macro(model, \"snapshotted_data\", \"source_data\", 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 {{ adapter.valid_snapshot_target(target_relation) }}\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.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": 1726597443.00787, "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": 1726597443.0106492, "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": 1726597443.0117152, "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": 1726597443.0119832, "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": 1726597443.01217, "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": 1726597443.012688, "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": 1726597443.013022, "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": 1726597443.013346, "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": 1726597443.0149271, "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": 1726597443.019558, "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": 1726597443.019901, "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": 1726597443.0201159, "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": 1726597443.021267, "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": 1726597443.021468, "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": 1726597443.022006, "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": 1726597443.0249112, "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": 1726597443.0313349, "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": 1726597443.035269, "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": 1726597443.036993, "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": 1726597443.0430698, "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": 1726597443.0445461, "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": 1726597443.0455601, "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": 1726597443.052224, "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": 1726597443.061431, "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": 1726597443.064173, "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": 1726597443.0654762, "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": 1726597443.0657558, "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": 1726597443.066916, "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": 1726597443.0712042, "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": 1726597443.078891, "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": 1726597443.080506, "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": 1726597443.082259, "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": 1726597443.0832598, "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": 1726597443.084343, "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": 1726597443.087517, "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": 1726597443.088481, "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": 1726597443.094197, "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": 1726597443.098388, "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": 1726597443.101378, "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": 1726597443.101564, "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": 1726597443.1017191, "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": 1726597443.10198, "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": 1726597443.118418, "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": 1726597443.1417909, "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": 1726597443.142835, "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": 1726597443.14407, "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": 1726597443.144992, "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": 1726597443.145254, "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": 1726597443.1453629, "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": 1726597443.145625, "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": 1726597443.145768, "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": 1726597443.1488461, "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": 1726597443.1518898, "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": 1726597443.156779, "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": 1726597443.1576262, "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": 1726597443.157862, "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": 1726597443.158302, "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": 1726597443.1584818, "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": 1726597443.158609, "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": 1726597443.1587389, "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": 1726597443.158848, "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": 1726597443.1589959, "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": 1726597443.159107, "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": 1726597443.1595361, "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": 1726597443.159711, "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": 1726597443.160877, "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": 1726597443.16132, "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": 1726597443.161675, "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": 1726597443.162179, "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": 1726597443.1624188, "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": 1726597443.1626759, "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": 1726597443.163043, "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": 1726597443.1632771, "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": 1726597443.1639411, "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": 1726597443.164289, "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": 1726597443.164458, "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": 1726597443.1646369, "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": 1726597443.1648152, "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": 1726597443.1655848, "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": 1726597443.166904, "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": 1726597443.167344, "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": 1726597443.16759, "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": 1726597443.167855, "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": 1726597443.168056, "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": 1726597443.1683588, "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": 1726597443.1685429, "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": 1726597443.169149, "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": 1726597443.1695218, "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": 1726597443.169696, "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": 1726597443.1699488, "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": 1726597443.170251, "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": 1726597443.17048, "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": 1726597443.170881, "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": 1726597443.171249, "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": 1726597443.171537, "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": 1726597443.1717188, "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": 1726597443.17195, "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": 1726597443.172062, "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": 1726597443.172308, "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": 1726597443.1725209, "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": 1726597443.172788, "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": 1726597443.1729028, "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": 1726597443.173175, "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": 1726597443.1733508, "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": 1726597443.1739352, "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": 1726597443.1740959, "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": 1726597443.174338, "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": 1726597443.174459, "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": 1726597443.1747031, "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": 1726597443.174826, "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": 1726597443.175712, "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": 1726597443.1758149, "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": 1726597443.176251, "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": 1726597443.17639, "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": 1726597443.176506, "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": 1726597443.177678, "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": 1726597443.178004, "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": 1726597443.1783, "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": 1726597443.1785269, "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": 1726597443.1786308, "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": 1726597443.1788669, "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": 1726597443.1789901, "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": 1726597443.179224, "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": 1726597443.17935, "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": 1726597443.180096, "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": 1726597443.180259, "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": 1726597443.180626, "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": 1726597443.181207, "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": 1726597443.181616, "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": 1726597443.181783, "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": 1726597443.181937, "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": 1726597443.18216, "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": 1726597443.182266, "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": 1726597443.1830242, "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": 1726597443.1831481, "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": 1726597443.184185, "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": 1726597443.1843572, "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": 1726597443.184555, "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": 1726597443.1848, "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": 1726597443.184932, "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": 1726597443.185308, "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": 1726597443.18545, "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": 1726597443.185608, "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": 1726597443.185971, "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": 1726597443.186285, "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": 1726597443.186542, "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": 1726597443.186764, "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": 1726597443.187247, "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": 1726597443.188492, "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": 1726597443.1890502, "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": 1726597443.189307, "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": 1726597443.190885, "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": 1726597443.191956, "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": 1726597443.1926022, "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": 1726597443.192812, "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": 1726597443.1930208, "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": 1726597443.1930938, "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": 1726597443.193761, "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": 1726597443.194241, "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": 1726597443.1944351, "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": 1726597443.194738, "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": 1726597443.1950169, "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": 1726597443.195254, "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": 1726597443.195532, "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": 1726597443.195679, "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": 1726597443.195895, "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": 1726597443.196005, "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": 1726597443.196796, "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": 1726597443.1974552, "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": 1726597443.1976168, "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": 1726597443.198144, "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": 1726597443.198426, "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": 1726597443.1985228, "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": 1726597443.1988149, "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": 1726597443.198959, "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": 1726597443.199147, "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": 1726597443.199213, "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": 1726597443.1994472, "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": 1726597443.199578, "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": 1726597443.1998389, "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": 1726597443.199958, "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": 1726597443.2004962, "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": 1726597443.200845, "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": 1726597443.2011368, "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": 1726597443.201278, "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": 1726597443.2015302, "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": 1726597443.201654, "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": 1726597443.2018812, "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": 1726597443.2020211, "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": 1726597443.2023308, "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": 1726597443.202472, "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": 1726597443.202721, "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": 1726597443.202836, "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": 1726597443.20306, "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": 1726597443.203153, "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": 1726597443.203404, "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": 1726597443.203524, "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": 1726597443.203736, "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": 1726597443.203827, "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": 1726597443.2046452, "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": 1726597443.2047732, "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": 1726597443.204911, "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": 1726597443.2050428, "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": 1726597443.2051861, "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": 1726597443.205318, "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": 1726597443.2054589, "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": 1726597443.205611, "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": 1726597443.205751, "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": 1726597443.20595, "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": 1726597443.206093, "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": 1726597443.206219, "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": 1726597443.2063518, "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": 1726597443.206472, "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": 1726597443.206701, "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": 1726597443.206816, "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": 1726597443.207018, "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": 1726597443.207104, "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": 1726597443.207446, "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": 1726597443.207693, "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": 1726597443.2078238, "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": 1726597443.208282, "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": 1726597443.208423, "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": 1726597443.208608, "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": 1726597443.2088451, "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": 1726597443.208958, "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": 1726597443.209274, "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": 1726597443.209484, "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": 1726597443.209723, "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": 1726597443.209909, "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": 1726597443.2102249, "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": 1726597443.210376, "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": 1726597443.2105129, "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": 1726597443.210669, "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": 1726597443.2112482, "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": 1726597443.211375, "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": 1726597443.211498, "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": 1726597443.211589, "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": 1726597443.211926, "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": 1726597443.212068, "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": 1726597443.212132, "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": 1726597443.212266, "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": 1726597443.212403, "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": 1726597443.213109, "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": 1726597443.213227, "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": 1726597443.2133608, "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": 1726597443.2137558, "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": 1726597443.2139149, "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": 1726597443.2140312, "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": 1726597443.214161, "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": 1726597443.214265, "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": 1726597443.215934, "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": 1726597443.216077, "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": 1726597443.2162619, "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": 1726597443.216511, "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": 1726597443.2167192, "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": 1726597443.216985, "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": 1726597443.217141, "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": 1726597443.217293, "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": 1726597443.2176902, "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": 1726597443.218293, "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": 1726597443.218517, "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": 1726597443.218645, "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": 1726597443.219029, "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": 1726597443.2193658, "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": 1726597443.219611, "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": 1726597443.2198982, "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": 1726597443.221379, "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": 1726597443.221477, "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": 1726597443.221617, "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": 1726597443.2217119, "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": 1726597443.2220001, "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": 1726597443.222167, "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": 1726597443.222274, "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": 1726597443.2224698, "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": 1726597443.2226539, "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": 1726597443.222848, "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": 1726597443.223026, "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": 1726597443.223264, "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": 1726597443.2238982, "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": 1726597443.224076, "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": 1726597443.224289, "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": 1726597443.2244911, "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": 1726597443.225526, "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": 1726597443.225914, "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": 1726597443.2260811, "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": 1726597443.2262452, "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": 1726597443.2268422, "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": 1726597443.2269921, "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": 1726597443.2271738, "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": 1726597443.227318, "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": 1726597443.227558, "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": 1726597443.227966, "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": 1726597443.230911, "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": 1726597443.231136, "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": 1726597443.231322, "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": 1726597443.2315462, "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": 1726597443.231711, "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": 1726597443.2318442, "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": 1726597443.2319958, "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": 1726597443.232198, "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": 1726597443.23244, "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": 1726597443.232712, "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": 1726597443.2328792, "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": 1726597443.233016, "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": 1726597443.23317, "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": 1726597443.233309, "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": 1726597443.23345, "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": 1726597443.233578, "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": 1726597443.2337549, "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": 1726597443.2338948, "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": 1726597443.23584, "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": 1726597443.235981, "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": 1726597443.236245, "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": 1726597443.236437, "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": 1726597443.236609, "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": 1726597443.2367659, "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": 1726597443.2378392, "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": 1726597443.238142, "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": 1726597443.238299, "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": 1726597443.2385988, "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": 1726597443.238791, "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": 1726597443.239379, "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": 1726597443.239614, "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": 1726597443.240285, "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": 1726597443.243348, "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": 1726597443.243816, "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": 1726597443.244771, "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": 1726597443.244957, "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": 1726597443.245043, "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": 1726597443.246497, "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": 1726597443.24663, "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": 1726597443.2473412, "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": 1726597443.247703, "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": 1726597443.2482, "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": 1726597443.248696, "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": 1726597443.248766, "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": 1726597443.2492428, "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": 1726597443.2494621, "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": 1726597443.24972, "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": 1726597443.249974, "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": 1726597443.250698, "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_float()},\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] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('microsoft_ads__campaign_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "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": 1726597443.252426, "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_float()},\n {\"name\": \"top_vs_other\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('microsoft_ads__ad_group_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "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": 1726597443.25403, "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_float()},\n {\"name\": \"top_vs_other\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('microsoft_ads__account_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "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": 1726597443.255389, "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": 1726597443.2561522, "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": 1726597443.2567549, "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": 1726597443.257503, "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_float()},\n {\"name\": \"top_vs_other\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('microsoft_ads__ad_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "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": 1726597443.2592902, "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_float()},\n {\"name\": \"top_vs_other\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('microsoft_ads__keyword_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "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": 1726597443.261066, "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": 1726597443.261719, "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_float()},\n {\"name\": \"top_vs_other\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('microsoft_ads__search_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "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": 1726597443.2634199, "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": 1726597443.263753, "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": 1726597443.2641642, "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": 1726597443.264569, "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": 1726597443.265103, "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": 1726597443.2653701, "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": 1726597443.2656372, "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": 1726597443.266573, "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": 1726597443.2674172, "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": 1726597443.2681699, "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": 1726597443.269133, "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": 1726597443.269724, "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": 1726597443.270017, "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": 1726597443.2706308, "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": 1726597443.27132, "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": 1726597443.271704, "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": 1726597443.272084, "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": 1726597443.272664, "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": 1726597443.273095, "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": 1726597443.2735832, "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": 1726597443.273921, "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": 1726597443.274529, "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": 1726597443.275263, "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": 1726597443.275836, "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": 1726597443.276435, "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": 1726597443.2770061, "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": 1726597443.277295, "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": 1726597443.2776341, "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": 1726597443.278226, "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": 1726597443.278822, "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": 1726597443.279509, "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": 1726597443.280278, "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": 1726597443.281019, "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": 1726597443.28271, "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": 1726597443.2860641, "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": 1726597443.28653, "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": 1726597443.28679, "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": 1726597443.289817, "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": 1726597443.291083, "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": 1726597443.291321, "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": 1726597443.291459, "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": 1726597443.291827, "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": 1726597443.292057, "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": 1726597443.292219, "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": 1726597443.292436, "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": 1726597443.292584, "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": 1726597443.293206, "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": 1726597443.293928, "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": 1726597443.294543, "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": 1726597443.29505, "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": 1726597443.295329, "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": 1726597443.295638, "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": 1726597443.29597, "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": 1726597443.2964292, "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": 1726597443.2967029, "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": 1726597443.296994, "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": 1726597443.2975712, "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": 1726597443.298295, "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": 1726597443.299027, "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": 1726597443.299375, "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": 1726597443.299546, "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": 1726597443.2999911, "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": 1726597443.300656, "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": 1726597443.301383, "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": 1726597443.301753, "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": 1726597443.302006, "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": 1726597443.303066, "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": 1726597443.304362, "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": 1726597443.305716, "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": 1726597443.307331, "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": 1726597443.307594, "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": 1726597443.307709, "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": 1726597443.3103309, "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": 1726597443.313218, "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": 1726597443.3135, "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": 1726597443.313714, "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": 1726597443.3145401, "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": 1726597443.31474, "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": 1726597443.3148859, "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": 1726597443.3150568, "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": 1726597443.315205, "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": 1726597443.315347, "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": 1726597443.3155, "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": 1726597443.315841, "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": 1726597443.316055, "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": 1726597443.316386, "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": 1726597443.316842, "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": 1726597443.3171399, "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": 1726597443.317419, "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": 1726597443.3200629, "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": 1726597443.320441, "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": 1726597443.3210099, "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": 1726597443.321621, "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": 1726597443.322033, "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": 1726597443.323061, "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": 1726597443.324383, "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": 1726597443.3253398, "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": 1726597443.326066, "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": 1726597443.326487, "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": 1726597443.3271198, "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": 1726597443.3278122, "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": 1726597443.32822, "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": 1726597443.328387, "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": 1726597443.328727, "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": 1726597443.3292239, "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": 1726597443.329628, "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": 1726597443.330157, "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": 1726597443.33061, "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": 1726597443.3307378, "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": 1726597443.330863, "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": 1726597443.33099, "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": 1726597443.3315442, "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": 1726597443.332181, "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": 1726597443.333138, "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": 1726597443.333371, "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": 1726597443.333866, "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": 1726597443.3345249, "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": 1726597443.33485, "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": 1726597443.3349829, "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": 1726597443.335158, "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": 1726597443.3360891, "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": 1726597443.336996, "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": 1726597443.338259, "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": 1726597443.339612, "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": 1726597443.341048, "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": 1726597443.342398, "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": 1726597443.343701, "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": 1726597443.345236, "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": 1726597443.3461812, "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": 1726597443.347036, "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": 1726597443.3479621, "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": 1726597443.349317, "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] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('amazon_ads__advertised_product_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "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": 1726597443.350624, "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] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('amazon_ads__ad_group_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "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": 1726597443.3513548, "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] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('amazon_ads__search_term_ad_keyword_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "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": 1726597443.352742, "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] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('amazon_ads__campaign_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_float", "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": 1726597443.3539672, "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": 1726597443.355524, "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": 1726597443.356958, "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] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('amazon_ads__targeting_keyword_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "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": 1726597443.3585432, "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": 1726597443.359763, "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": 1726597443.360895, "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": 1726597443.3612192, "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": 1726597443.361355, "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": 1726597443.361537, "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": 1726597443.362908, "supported_languages": null}, "macro.linkedin_source.is_table_empty": {"name": "is_table_empty", "resource_type": "macro", "package_name": "linkedin_source", "path": "macros/is_table_empty.sql", "original_file_path": "macros/is_table_empty.sql", "unique_id": "macro.linkedin_source.is_table_empty", "macro_sql": "{%- macro is_table_empty(table_name) -%}\n\n{{ adapter.dispatch('is_table_empty', 'linkedin_source') (table_name) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.linkedin_source.default__is_table_empty"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1726597443.36331, "supported_languages": null}, "macro.linkedin_source.default__is_table_empty": {"name": "default__is_table_empty", "resource_type": "macro", "package_name": "linkedin_source", "path": "macros/is_table_empty.sql", "original_file_path": "macros/is_table_empty.sql", "unique_id": "macro.linkedin_source.default__is_table_empty", "macro_sql": "\n\n{%- macro default__is_table_empty(table_name) -%}\n {%- if execute and flags.WHICH in ('run', 'build') %}\n {% set row_count_query %}\n select count(*) as row_count from {{ table_name }}\n {% endset %}\n {% set results = run_query(row_count_query) %}\n {% if results %}\n {% set row_count = results.columns[0][0] %}\n {% if row_count == 0 %}\n {{ return(\"empty\") }}\n {% endif %}\n {% endif %}\n {% endif -%}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1726597443.363792, "supported_languages": null}, "macro.linkedin_source.result_if_table_exists": {"name": "result_if_table_exists", "resource_type": "macro", "package_name": "linkedin_source", "path": "macros/result_if_table_exists.sql", "original_file_path": "macros/result_if_table_exists.sql", "unique_id": "macro.linkedin_source.result_if_table_exists", "macro_sql": "{%- macro result_if_table_exists(table_ref, result_statement, if_empty=1) -%}\n\n{{ adapter.dispatch('result_if_table_exists', 'linkedin_source') (table_ref, result_statement, if_empty=1) }}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.linkedin_source.default__result_if_table_exists"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1726597443.3641212, "supported_languages": null}, "macro.linkedin_source.default__result_if_table_exists": {"name": "default__result_if_table_exists", "resource_type": "macro", "package_name": "linkedin_source", "path": "macros/result_if_table_exists.sql", "original_file_path": "macros/result_if_table_exists.sql", "unique_id": "macro.linkedin_source.default__result_if_table_exists", "macro_sql": "{%- macro default__result_if_table_exists(table_ref, result_statement, if_empty=1) -%}\n {%- set is_empty_result = linkedin_source.is_table_empty(table_ref) -%} \n {%- if is_empty_result == \"empty\" %}\n {{ if_empty }}\n {%- else %}\n {{ result_statement }}\n {%- endif %}\n{%- endmacro %}", "depends_on": {"macros": ["macro.linkedin_source.is_table_empty"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1726597443.364376, "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": 1726597443.365263, "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": 1726597443.3662999, "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": 1726597443.367459, "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": 1726597443.369782, "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": 1726597443.370809, "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": 1726597443.371648, "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": 1726597443.376161, "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": 1726597443.376756, "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": 1726597443.377517, "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": 1726597443.3781319, "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": 1726597443.378742, "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": 1726597443.379572, "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": 1726597443.379733, "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": 1726597443.379832, "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": 1726597443.3822248, "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": 1726597443.388608, "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": 1726597443.388748, "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": 1726597443.388821, "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": 1726597443.389311, "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": 1726597443.390691, "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": 1726597443.390978, "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": 1726597443.391213, "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": 1726597443.3914518, "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": 1726597443.3917398, "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": 1726597443.391911, "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": 1726597443.3920908, "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": 1726597443.392412, "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": 1726597443.392543, "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": 1726597443.392713, "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": 1726597443.393752, "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": 1726597443.393868, "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": 1726597443.393986, "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": 1726597443.394146, "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": 1726597443.3942468, "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": 1726597443.394343, "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": 1726597443.394933, "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": 1726597443.395065, "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": 1726597443.395235, "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": 1726597443.403648, "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": 1726597443.4055161, "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": 1726597443.407667, "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": 1726597443.409245, "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": 1726597443.409953, "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": 1726597443.4105432, "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": 1726597443.41119, "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": 1726597443.411835, "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": 1726597443.412343, "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": 1726597443.412545, "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": 1726597443.412864, "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": 1726597443.413593, "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": 1726597443.4139462, "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": 1726597443.41411, "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": 1726597443.414547, "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": 1726597443.414839, "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": 1726597443.4153118, "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": 1726597443.4168792, "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": 1726597443.417516, "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": 1726597443.418439, "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": 1726597443.418666, "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": 1726597443.418891, "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": 1726597443.4192388, "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": 1726597443.41941, "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": 1726597443.420165, "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": 1726597443.420349, "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": 1726597443.420542, "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": 1726597443.42072, "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": 1726597443.4208949, "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": 1726597443.42107, "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": 1726597443.421248, "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": 1726597443.421427, "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": 1726597443.421789, "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": 1726597443.421907, "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": 1726597443.422029, "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": 1726597443.422121, "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": 1726597443.4222069, "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": 1726597443.422296, "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": 1726597443.422514, "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": 1726597443.423019, "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": 1726597443.423233, "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": 1726597443.423488, "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": 1726597443.423712, "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": 1726597443.423837, "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": 1726597443.424408, "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": 1726597443.424545, "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": 1726597443.424663, "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": 1726597443.424785, "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": 1726597443.424912, "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": 1726597443.425039, "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": 1726597443.425169, "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": 1726597443.425288, "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": 1726597443.425635, "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": 1726597443.4257898, "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": 1726597443.425966, "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": 1726597443.426189, "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": 1726597443.4263418, "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": 1726597443.426501, "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": 1726597443.426862, "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": 1726597443.426986, "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": 1726597443.427178, "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": 1726597443.4273431, "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": 1726597443.427433, "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": 1726597443.427551, "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": 1726597443.4277692, "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": 1726597443.430023, "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": 1726597443.430259, "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": 1726597443.4304829, "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": 1726597443.430877, "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": 1726597443.431207, "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": 1726597443.431723, "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": 1726597443.431951, "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": 1726597443.432272, "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": 1726597443.432578, "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": 1726597443.432693, "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": 1726597443.432811, "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": 1726597443.432926, "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": 1726597443.4332218, "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": 1726597443.433407, "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": 1726597443.4336362, "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": 1726597443.433826, "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": 1726597443.436136, "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": 1726597443.436388, "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": 1726597443.436737, "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": 1726597443.436987, "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": 1726597443.437353, "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": 1726597443.437671, "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": 1726597443.4378161, "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": 1726597443.437998, "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": 1726597443.438241, "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": 1726597443.438634, "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": 1726597443.438817, "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": 1726597443.438984, "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": 1726597443.439135, "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": 1726597443.439466, "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": 1726597443.4400818, "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": 1726597443.4402628, "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": 1726597443.440508, "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": 1726597443.440681, "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": 1726597443.440866, "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": 1726597443.441035, "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": 1726597443.441211, "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": 1726597443.441377, "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": 1726597443.441587, "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": 1726597443.441963, "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": 1726597443.4421198, "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": 1726597443.442247, "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": 1726597443.442345, "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": 1726597443.443437, "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": 1726597443.443615, "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": 1726597443.4437408, "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": 1726597443.4439301, "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": 1726597443.4440901, "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": 1726597443.444246, "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": 1726597443.444384, "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": 1726597443.444577, "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": 1726597443.444868, "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": 1726597443.44555, "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": 1726597443.4457102, "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": 1726597443.445834, "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": 1726597443.445952, "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": 1726597443.4460852, "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": 1726597443.446214, "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": 1726597443.446334, "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": 1726597443.446453, "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": 1726597443.4468968, "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": 1726597443.4470148, "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": 1726597443.447192, "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": 1726597443.447366, "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": 1726597443.447488, "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": 1726597443.4476779, "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": 1726597443.44786, "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": 1726597443.448703, "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": 1726597443.450082, "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": 1726597443.450398, "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": 1726597443.450525, "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": 1726597443.450686, "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": 1726597443.4522529, "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": 1726597443.4531488, "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": 1726597443.454606, "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": 1726597443.455764, "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": 1726597443.4573839, "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": 1726597443.458206, "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": 1726597443.459104, "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": 1726597443.460107, "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": 1726597443.4617758, "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": 1726597443.463139, "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": 1726597443.463479, "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": 1726597443.464293, "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": 1726597443.464438, "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": 1726597443.464582, "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": 1726597443.464721, "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": 1726597443.464843, "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": 1726597443.464986, "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": 1726597443.465683, "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": 1726597443.4662778, "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": 1726597443.467502, "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": 1726597443.467716, "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": 1726597443.467927, "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": 1726597443.468137, "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": 1726597443.468344, "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": 1726597443.468575, "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": 1726597443.468884, "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": 1726597443.469088, "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": 1726597443.469385, "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": 1726597443.4694772, "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": 1726597443.469571, "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": 1726597443.4696589, "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": 1726597443.469982, "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": 1726597443.470582, "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": 1726597443.471424, "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": 1726597443.471914, "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": 1726597443.4725819, "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": 1726597443.473012, "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": 1726597443.473126, "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": 1726597443.473238, "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": 1726597443.473354, "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": 1726597443.473472, "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": 1726597443.4760342, "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": 1726597443.476186, "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": 1726597443.476324, "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": 1726597443.476526, "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": 1726597443.477936, "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": 1726597443.47877, "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": 1726597443.478894, "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": 1726597443.479132, "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": 1726597443.479383, "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": 1726597443.479499, "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": 1726597443.4796128, "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": 1726597443.479721, "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": 1726597443.479826, "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": 1726597443.480253, "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": 1726597443.4808, "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": 1726597443.4812942, "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": 1726597443.481478, "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": 1726597443.4816709, "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": 1726597443.481906, "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": 1726597443.483084, "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": 1726597443.48646, "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": 1726597443.486777, "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": 1726597443.487125, "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": 1726597443.488472, "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": 1726597443.488946, "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": 1726597443.4894478, "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": 1726597443.4895859, "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": 1726597443.48972, "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": 1726597443.48987, "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": 1726597443.490004, "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": 1726597443.4901319, "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": 1726597443.49086, "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": 1726597443.4919481, "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": 1726597443.492578, "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": 1726597443.492725, "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": 1726597443.492861, "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": 1726597443.492998, "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": 1726597443.493136, "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": 1726597443.493286, "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": 1726597443.493509, "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": 1726597443.493598, "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": 1726597443.493688, "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": 1726597443.4942348, "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": 1726597443.495383, "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": 1726597443.495539, "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": 1726597443.496237, "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": 1726597443.499362, "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": 1726597443.5032551, "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": 1726597443.504458, "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": 1726597443.5047522, "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": 1726597443.504879, "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": 1726597443.5050461, "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": 1726597443.505339, "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": 1726597443.5054379, "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": 1726597443.505543, "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": 1726597443.5056388, "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": 1726597443.505728, "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": 1726597443.5059571, "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": 1726597443.506046, "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": 1726597443.506135, "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": 1726597443.5064802, "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": 1726597443.5068219, "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": 1726597448.217464, "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": 1726597448.2155678, "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": 1726597443.507529, "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": 1726597443.507618, "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": 1726597443.5077848, "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": 1726597443.5078762, "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": 1726597448.217789, "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'] -%}\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 {%- do final_fields_superset.update({account_passthrough_metric_value: account_passthrough_metric_value}) -%}\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 {%- do final_fields_superset.update({campaign_passthrough_metric_value: campaign_passthrough_metric_value}) -%}\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 {%- do final_fields_superset.update({ad_group_passthrough_metric_value: ad_group_passthrough_metric_value}) -%}\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 {%- do final_fields_superset.update({ad_field: ad_field})-%}\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 {%- do final_fields_superset.update({ad_field: ad_field})-%}\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 {%- 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 {%- do final_fields_superset.update({keyword_field: keyword_field})-%}\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 {%- 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 {%- do final_fields_superset.update({search_field: search_field})-%}\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 != 'spend' -%}\n cast({{ final_fields_superset[field] }} as {{ dbt.type_int() }}) as {{ field }}\n\n {% elif field == 'spend' -%}\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": 1726597448.217005, "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": 1726597448.216355, "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": 1726597443.519233, "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\": \"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{{ fivetran_utils.add_pass_through_columns(columns, var('apple_search_ads__ad_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_numeric", "macro.dbt.type_string", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1726597443.52037, "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\": \"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{{ fivetran_utils.add_pass_through_columns(columns, var('apple_search_ads__search_term_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_numeric", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1726597443.522432, "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\": \"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{{ fivetran_utils.add_pass_through_columns(columns, var('apple_search_ads__keyword_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_numeric", "macro.dbt.type_string", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1726597443.523332, "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\": \"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{{ fivetran_utils.add_pass_through_columns(columns, var('apple_search_ads__campaign_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_numeric", "macro.dbt.type_string", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1726597443.524232, "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": 1726597443.524971, "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": 1726597443.5257971, "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\": \"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{{ fivetran_utils.add_pass_through_columns(columns, var('apple_search_ads__ad_group_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_numeric", "macro.dbt.type_string", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1726597443.526704, "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": 1726597443.527283, "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": 1726597443.528192, "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": 1726597443.529375, "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": 1726597443.531165, "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": 1726597443.531491, "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": 1726597443.531622, "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": 1726597443.531792, "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] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('pinterest__keyword_report_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": 1726597443.533236, "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] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('pinterest__pin_promotion_report_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_numeric", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1726597443.534414, "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] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('pinterest__campaign_report_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": 1726597443.535594, "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": 1726597443.536644, "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": 1726597443.5377312, "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] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('pinterest__ad_group_report_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": 1726597443.538987, "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": 1726597443.540042, "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] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('pinterest__advertiser_report_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": 1726597443.5409641, "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": 1726597443.542872, "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_numeric()},\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\": \"shares\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"spend\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"stat_time_hour\", \"datatype\": dbt.type_timestamp()},\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{{ fivetran_utils.add_pass_through_columns(columns, var('tiktok_ads__ad_group_hourly_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_numeric", "macro.dbt.type_float", "macro.dbt.type_timestamp", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1726597443.545457, "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": 1726597443.547126, "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": 1726597443.5478039, "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": 1726597443.548121, "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": 1726597443.548256, "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": 1726597443.5484328, "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_numeric()},\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\": \"shares\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"spend\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"stat_time_hour\", \"datatype\": dbt.type_timestamp()},\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{{ fivetran_utils.add_pass_through_columns(columns, var('tiktok_ads__campaign_hourly_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_numeric", "macro.dbt.type_float", "macro.dbt.type_timestamp", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1726597443.5510342, "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": 1726597443.552062, "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_numeric()},\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\": \"shares\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"spend\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"stat_time_hour\", \"datatype\": dbt.type_timestamp()},\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{{ fivetran_utils.add_pass_through_columns(columns, var('tiktok_ads__ad_hourly_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_numeric", "macro.dbt.type_float", "macro.dbt.type_timestamp", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1726597443.554587, "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] %}\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": 1726597443.555655, "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": 1726597443.557398, "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": 1726597443.558636, "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": 1726597443.560368, "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": 1726597443.5613031, "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] %}\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": 1726597443.562062, "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] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('snapchat_ads__campaign_hourly_report_passthrough_metrics')) }}\n\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"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1726597443.56393, "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": 1726597443.564599, "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": 1726597443.565344, "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] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('snapchat_ads__ad_hourly_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_numeric", "macro.dbt.type_timestamp", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1726597443.567382, "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] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('snapchat_ads__ad_squad_hourly_passthrough_metrics')) }}\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"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1726597443.569304, "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": 1726597443.5699809, "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": 1726597443.570475, "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": 1726597443.5712168, "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": 1726597443.572143, "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": 1726597443.572466, "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": 1726597443.572602, "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": 1726597443.572781, "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": 1726597443.573365, "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__line_item_keywords_report_passthrough_metrics')) }}\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"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1726597443.574433, "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": 1726597443.574771, "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": 1726597443.574901, "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": 1726597443.575072, "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__line_item_report_passthrough_metrics')) }}\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"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1726597443.576004, "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__campaign_report_passthrough_metrics')) }}\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"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1726597443.576961, "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": 1726597443.5800471, "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": 1726597443.5813398, "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": 1726597443.583343, "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": 1726597443.5840588, "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": 1726597443.58462, "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__promoted_tweet_report_passthrough_metrics')) }}\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"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1726597443.585377, "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 {% 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": 1726597443.5866082, "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.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_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.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.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.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.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.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": 1726597448.177509, "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": 1726597448.1781352, "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": 1726597448.178602, "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": 1726597448.1790578, "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": 1726597448.1793659, "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": 1726597448.17978, "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": 1726597448.181578, "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": 1726597448.182209, "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": 1726597448.182782, "group": null}}, "groups": {}, "selectors": {}, "disabled": {"test.ad_reporting_integration_tests.consistency_url_report": [{"database": "postgres", "schema": "ad_reporting_integration_tests_7_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": "23abe868f99abf786fe192c75deef6ae5c0471f1b561b635d506c2d4f6ca5275"}, "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": 1726597444.043203, "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 date_day,\n platform,\n sum(clicks) as clicks, \n sum(impressions) as impressions,\n sum(spend) as spend\n from {{ target.schema }}_ad_reporting_prod.ad_reporting__url_report\n group by 1, 2\n),\n\ndev as (\n select\n date_day,\n platform,\n sum(clicks) as clicks, \n sum(impressions) as impressions,\n sum(spend) as spend\n from {{ target.schema }}_ad_reporting_dev.ad_reporting__url_report\n group by 1, 2\n),\n\nfinal as (\n select \n prod.date_day,\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 from prod\n full outer join dev \n on dev.date_day = prod.date_day\n and dev.platform = prod.platform\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", "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": "ad_reporting_integration_tests_7_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": "ef9c7381a26330f2b8e54c6292f5e127d5ed155fdc8a5c3e91c392238997d3f9"}, "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": 1726597444.058122, "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 date_day,\n platform,\n sum(clicks) as clicks, \n sum(impressions) as impressions,\n sum(spend) as spend\n from {{ target.schema }}_ad_reporting_prod.ad_reporting__ad_report\n group by 1, 2\n),\n\ndev as (\n select\n date_day,\n platform,\n sum(clicks) as clicks, \n sum(impressions) as impressions,\n sum(spend) as spend\n from {{ target.schema }}_ad_reporting_dev.ad_reporting__ad_report\n group by 1, 2\n),\n\nfinal as (\n select \n prod.date_day,\n dev.date_day,\n prod.platform,\n dev.platform,\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 from prod\n full outer join dev \n on dev.date_day = prod.date_day\n and dev.platform = prod.platform\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", "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": "postgres", "schema": "ad_reporting_integration_tests_7_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": "d3e5848adbba8d34c13578d4df1c7c1e47df13b7272355cc742845d2e7761db6"}, "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": []}}, "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": 1726597447.432174, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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 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\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.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": "postgres", "schema": "ad_reporting_integration_tests_7_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": "1e6297d8960ebf7e66fd283aeca405af30461f05c18f3e68d3a0040e895bb519"}, "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": []}}, "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": 1726597448.6890419, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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 {{ fivetran_utils.fill_pass_through_columns('twitter_ads__line_item_keywords_report_passthrough_metrics') }}\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.fivetran_utils.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": "postgres", "schema": "ad_reporting_integration_tests_7_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": 1726597447.010349, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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": "postgres", "schema": "ad_reporting_integration_tests_7", "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": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": false}, "patch_path": null, "unrendered_config": {"enabled": false}, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7\".\"twitter_line_item_keywords_report_data\"", "created_at": 1726597448.781051}]}, "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.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.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.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.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.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.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_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_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_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_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_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_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__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_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__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_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__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_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_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_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_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.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": ["model.facebook_ads_source.stg_facebook_ads__basic_ad_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__creative_history_tmp": ["source.facebook_ads_source.facebook_ads.creative_history"], "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.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.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.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.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.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.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.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.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.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.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_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__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_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__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_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.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": ["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__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__creative_history_tmp": ["model.facebook_ads_source.stg_facebook_ads__creative_history"], "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.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.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.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.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_integration_tests_7_ad_reporting_dev", "database": "postgres", "relation_name": "\"postgres\".\"ad_reporting_integration_tests_7_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": 1726597448.2081459, "config": {"enabled": true, "group": null, "meta": {}}, "unrendered_config": {}, "primary_entity": "ad", "group": null}}, "unit_tests": {}} \ No newline at end of file diff --git a/docs/run_results.json b/docs/run_results.json deleted file mode 100644 index 168450b..0000000 --- a/docs/run_results.json +++ /dev/null @@ -1 +0,0 @@ -{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/run-results/v6.json", "dbt_version": "1.8.4", "generated_at": "2024-07-29T18:33:48.828186Z", "invocation_id": "a0a5b15e-aa7f-4333-9bae-f6be74a9a347", "env": {}}, "results": [{"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:21.984362Z", "completed_at": "2024-07-29T18:33:21.992658Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:21.992904Z", "completed_at": "2024-07-29T18:33:21.992912Z"}], "thread_id": "Thread-3", "execution_time": 0.06367087364196777, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.amazon_ads_source.stg_amazon_ads__ad_group_level_report_tmp", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"ad_reporting_docs\".\"amazon_ads_ad_group_level_report_data\"", "relation_name": "\"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"stg_amazon_ads__ad_group_level_report_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:21.988052Z", "completed_at": "2024-07-29T18:33:21.997466Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:21.997983Z", "completed_at": "2024-07-29T18:33:21.997989Z"}], "thread_id": "Thread-4", "execution_time": 0.06795024871826172, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.amazon_ads_source.stg_amazon_ads__advertised_product_report_tmp", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"ad_reporting_docs\".\"amazon_ads_advertised_product_report_data\"", "relation_name": "\"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"stg_amazon_ads__advertised_product_report_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:21.964768Z", "completed_at": "2024-07-29T18:33:21.997730Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:21.998395Z", "completed_at": "2024-07-29T18:33:21.998398Z"}], "thread_id": "Thread-2", "execution_time": 0.0700831413269043, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.amazon_ads_source.stg_amazon_ads__ad_group_history_tmp", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"ad_reporting_docs\".\"amazon_ads_ad_group_history_data\"", "relation_name": "\"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"stg_amazon_ads__ad_group_history_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:21.993978Z", "completed_at": "2024-07-29T18:33:21.999291Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.000020Z", "completed_at": "2024-07-29T18:33:22.000024Z"}], "thread_id": "Thread-3", "execution_time": 0.006526947021484375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.amazon_ads_source.stg_amazon_ads__campaign_history_tmp", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"ad_reporting_docs\".\"amazon_ads_campaign_history_data\"", "relation_name": "\"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"stg_amazon_ads__campaign_history_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.005019Z", "completed_at": "2024-07-29T18:33:22.014539Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.014771Z", "completed_at": "2024-07-29T18:33:22.014776Z"}], "thread_id": "Thread-2", "execution_time": 0.015062093734741211, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.amazon_ads_source.stg_amazon_ads__keyword_history_tmp", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"ad_reporting_docs\".\"amazon_ads_keyword_history_data\"", "relation_name": "\"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"stg_amazon_ads__keyword_history_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.000991Z", "completed_at": "2024-07-29T18:33:22.015354Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.016033Z", "completed_at": "2024-07-29T18:33:22.016036Z"}], "thread_id": "Thread-4", "execution_time": 0.016563892364501953, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.amazon_ads_source.stg_amazon_ads__campaign_level_report_tmp", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"ad_reporting_docs\".\"amazon_ads_campaign_level_report_data\"", "relation_name": "\"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"stg_amazon_ads__campaign_level_report_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.008987Z", "completed_at": "2024-07-29T18:33:22.015590Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.016365Z", "completed_at": "2024-07-29T18:33:22.016368Z"}], "thread_id": "Thread-3", "execution_time": 0.007959127426147461, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.amazon_ads_source.stg_amazon_ads__portfolio_history_tmp", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"ad_reporting_docs\".\"amazon_ads_portfolio_history_data\"", "relation_name": "\"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"stg_amazon_ads__portfolio_history_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.017403Z", "completed_at": "2024-07-29T18:33:22.025856Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.029496Z", "completed_at": "2024-07-29T18:33:22.029502Z"}], "thread_id": "Thread-2", "execution_time": 0.01375889778137207, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.amazon_ads_source.stg_amazon_ads__product_ad_history_tmp", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"ad_reporting_docs\".\"amazon_ads_product_ad_history_data\"", "relation_name": "\"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"stg_amazon_ads__product_ad_history_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.021797Z", "completed_at": "2024-07-29T18:33:22.034146Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.034391Z", "completed_at": "2024-07-29T18:33:22.034395Z"}], "thread_id": "Thread-4", "execution_time": 0.013605833053588867, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.amazon_ads_source.stg_amazon_ads__profile_tmp", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"ad_reporting_docs\".\"amazon_ads_profile_data\"", "relation_name": "\"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"stg_amazon_ads__profile_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.026057Z", "completed_at": "2024-07-29T18:33:22.035004Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.035531Z", "completed_at": "2024-07-29T18:33:22.035535Z"}], "thread_id": "Thread-3", "execution_time": 0.014480113983154297, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.amazon_ads_source.stg_amazon_ads__search_term_ad_keyword_report_tmp", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"ad_reporting_docs\".\"amazon_ads_search_term_ad_keyword_report_data\"", "relation_name": "\"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"stg_amazon_ads__search_term_ad_keyword_report_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.030703Z", "completed_at": "2024-07-29T18:33:22.035886Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.036513Z", "completed_at": "2024-07-29T18:33:22.036517Z"}], "thread_id": "Thread-2", "execution_time": 0.006371021270751953, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.amazon_ads_source.stg_amazon_ads__targeting_keyword_report_tmp", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"ad_reporting_docs\".\"amazon_ads_targeting_keyword_report_data\"", "relation_name": "\"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"stg_amazon_ads__targeting_keyword_report_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.036882Z", "completed_at": "2024-07-29T18:33:22.045331Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.045772Z", "completed_at": "2024-07-29T18:33:22.045776Z"}], "thread_id": "Thread-4", "execution_time": 0.010573148727416992, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__ad_group_history_tmp", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"ad_reporting_docs\".\"apple_search_ad_group_history_data\"", "relation_name": "\"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"stg_apple_search_ads__ad_group_history_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.041335Z", "completed_at": "2024-07-29T18:33:22.049878Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.050381Z", "completed_at": "2024-07-29T18:33:22.050385Z"}], "thread_id": "Thread-3", "execution_time": 0.010106801986694336, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__ad_group_report_tmp", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"ad_reporting_docs\".\"apple_search_ad_group_report_data\"", "relation_name": "\"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"stg_apple_search_ads__ad_group_report_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.046147Z", "completed_at": "2024-07-29T18:33:22.051184Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.055091Z", "completed_at": "2024-07-29T18:33:22.055096Z"}], "thread_id": "Thread-2", "execution_time": 0.014055013656616211, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__ad_history_tmp", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"ad_reporting_docs\".\"apple_search_ad_history_data\"", "relation_name": "\"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"stg_apple_search_ads__ad_history_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.051383Z", "completed_at": "2024-07-29T18:33:22.061583Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.066270Z", "completed_at": "2024-07-29T18:33:22.066276Z"}], "thread_id": "Thread-4", "execution_time": 0.016222000122070312, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__ad_report_tmp", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n \n \n \n select \n cast(null as TEXT) as _dbt_source_relation\n limit 0", "relation_name": "\"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"stg_apple_search_ads__ad_report_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.057601Z", "completed_at": "2024-07-29T18:33:22.066683Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.067193Z", "completed_at": "2024-07-29T18:33:22.067196Z"}], "thread_id": "Thread-3", "execution_time": 0.012414932250976562, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__campaign_history_tmp", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"ad_reporting_docs\".\"apple_search_campaign_history_data\"", "relation_name": "\"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"stg_apple_search_ads__campaign_history_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.061803Z", "completed_at": "2024-07-29T18:33:22.068086Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.068797Z", "completed_at": "2024-07-29T18:33:22.068800Z"}], "thread_id": "Thread-2", "execution_time": 0.007808208465576172, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__campaign_report_tmp", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"ad_reporting_docs\".\"apple_search_campaign_report_data\"", "relation_name": "\"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"stg_apple_search_ads__campaign_report_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.069152Z", "completed_at": "2024-07-29T18:33:22.077664Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.081420Z", "completed_at": "2024-07-29T18:33:22.081427Z"}], "thread_id": "Thread-4", "execution_time": 0.01388692855834961, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__keyword_history_tmp", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"ad_reporting_docs\".\"apple_search_keyword_history_data\"", "relation_name": "\"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"stg_apple_search_ads__keyword_history_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.073233Z", "completed_at": "2024-07-29T18:33:22.081859Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.082406Z", "completed_at": "2024-07-29T18:33:22.082410Z"}], "thread_id": "Thread-3", "execution_time": 0.013923168182373047, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__keyword_report_tmp", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"ad_reporting_docs\".\"apple_search_keyword_report_data\"", "relation_name": "\"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"stg_apple_search_ads__keyword_report_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.077908Z", "completed_at": "2024-07-29T18:33:22.083026Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.083689Z", "completed_at": "2024-07-29T18:33:22.083692Z"}], "thread_id": "Thread-2", "execution_time": 0.006617069244384766, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__organization_tmp", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"ad_reporting_docs\".\"apple_search_organization_data\"", "relation_name": "\"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"stg_apple_search_ads__organization_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.084252Z", "completed_at": "2024-07-29T18:33:22.096718Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.096943Z", "completed_at": "2024-07-29T18:33:22.096949Z"}], "thread_id": "Thread-4", "execution_time": 0.014225959777832031, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__search_term_report_tmp", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"ad_reporting_docs\".\"apple_search_search_term_report_data\"", "relation_name": "\"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"stg_apple_search_ads__search_term_report_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.089529Z", "completed_at": "2024-07-29T18:33:22.097589Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.098077Z", "completed_at": "2024-07-29T18:33:22.098081Z"}], "thread_id": "Thread-3", "execution_time": 0.014101982116699219, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.facebook_ads_source.stg_facebook_ads__account_history_tmp", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"ad_reporting_docs\".\"facebook_ads_account_history_data\"", "relation_name": "\"postgres\".\"ad_reporting_docs_facebook_ads_source\".\"stg_facebook_ads__account_history_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.093328Z", "completed_at": "2024-07-29T18:33:22.098451Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.099119Z", "completed_at": "2024-07-29T18:33:22.099122Z"}], "thread_id": "Thread-2", "execution_time": 0.009897947311401367, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.facebook_ads_source.stg_facebook_ads__ad_history_tmp", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"ad_reporting_docs\".\"facebook_ads_ad_history_data\"", "relation_name": "\"postgres\".\"ad_reporting_docs_facebook_ads_source\".\"stg_facebook_ads__ad_history_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.099459Z", "completed_at": "2024-07-29T18:33:22.108106Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.108550Z", "completed_at": "2024-07-29T18:33:22.108555Z"}], "thread_id": "Thread-4", "execution_time": 0.010792016983032227, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.facebook_ads_source.stg_facebook_ads__ad_set_history_tmp", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"ad_reporting_docs\".\"facebook_ads_ad_set_history_data\"", "relation_name": "\"postgres\".\"ad_reporting_docs_facebook_ads_source\".\"stg_facebook_ads__ad_set_history_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.104021Z", "completed_at": "2024-07-29T18:33:22.112995Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.113409Z", "completed_at": "2024-07-29T18:33:22.113413Z"}], "thread_id": "Thread-3", "execution_time": 0.010468006134033203, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.facebook_ads_source.stg_facebook_ads__basic_ad_tmp", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"ad_reporting_docs\".\"facebook_ads_basic_ad_data\"", "relation_name": "\"postgres\".\"ad_reporting_docs_facebook_ads_source\".\"stg_facebook_ads__basic_ad_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.108950Z", "completed_at": "2024-07-29T18:33:22.117271Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.117840Z", "completed_at": "2024-07-29T18:33:22.117845Z"}], "thread_id": "Thread-2", "execution_time": 0.01412510871887207, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.facebook_ads_source.stg_facebook_ads__campaign_history_tmp", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"ad_reporting_docs\".\"facebook_ads_campaign_history_data\"", "relation_name": "\"postgres\".\"ad_reporting_docs_facebook_ads_source\".\"stg_facebook_ads__campaign_history_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.113768Z", "completed_at": "2024-07-29T18:33:22.118954Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.122825Z", "completed_at": "2024-07-29T18:33:22.122829Z"}], "thread_id": "Thread-4", "execution_time": 0.010138988494873047, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.facebook_ads_source.stg_facebook_ads__creative_history_tmp", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"ad_reporting_docs\".\"facebook_ads_creative_history_data\"", "relation_name": "\"postgres\".\"ad_reporting_docs_facebook_ads_source\".\"stg_facebook_ads__creative_history_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.119358Z", "completed_at": "2024-07-29T18:33:22.128010Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.128450Z", "completed_at": "2024-07-29T18:33:22.128455Z"}], "thread_id": "Thread-3", "execution_time": 0.010287761688232422, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads_source.stg_google_ads__account_history_tmp", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"ad_reporting_docs\".\"google_ads_account_history_data\"", "relation_name": "\"postgres\".\"ad_reporting_docs_google_ads_source\".\"stg_google_ads__account_history_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.123740Z", "completed_at": "2024-07-29T18:33:22.132520Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.133053Z", "completed_at": "2024-07-29T18:33:22.133058Z"}], "thread_id": "Thread-2", "execution_time": 0.013964176177978516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads_source.stg_google_ads__account_stats_tmp", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"ad_reporting_docs\".\"google_ads_account_stats_data\"", "relation_name": "\"postgres\".\"ad_reporting_docs_google_ads_source\".\"stg_google_ads__account_stats_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.128812Z", "completed_at": "2024-07-29T18:33:22.133646Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.137523Z", "completed_at": "2024-07-29T18:33:22.137528Z"}], "thread_id": "Thread-4", "execution_time": 0.009804010391235352, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads_source.stg_google_ads__ad_group_criterion_history_tmp", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"ad_reporting_docs\".\"google_ads_ad_group_criterion_history_data\"", "relation_name": "\"postgres\".\"ad_reporting_docs_google_ads_source\".\"stg_google_ads__ad_group_criterion_history_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.134080Z", "completed_at": "2024-07-29T18:33:22.138831Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.142666Z", "completed_at": "2024-07-29T18:33:22.142671Z"}], "thread_id": "Thread-3", "execution_time": 0.009917974472045898, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads_source.stg_google_ads__ad_group_history_tmp", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"ad_reporting_docs\".\"google_ads_ad_group_history_data\"", "relation_name": "\"postgres\".\"ad_reporting_docs_google_ads_source\".\"stg_google_ads__ad_group_history_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.139021Z", "completed_at": "2024-07-29T18:33:22.147683Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.148288Z", "completed_at": "2024-07-29T18:33:22.148293Z"}], "thread_id": "Thread-2", "execution_time": 0.010465860366821289, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads_source.stg_google_ads__ad_group_stats_tmp", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"ad_reporting_docs\".\"google_ads_ad_group_stats_data\"", "relation_name": "\"postgres\".\"ad_reporting_docs_google_ads_source\".\"stg_google_ads__ad_group_stats_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.143051Z", "completed_at": "2024-07-29T18:33:22.148100Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.152124Z", "completed_at": "2024-07-29T18:33:22.152128Z"}], "thread_id": "Thread-4", "execution_time": 0.013561248779296875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads_source.stg_google_ads__ad_history_tmp", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"ad_reporting_docs\".\"google_ads_ad_history_data\"", "relation_name": "\"postgres\".\"ad_reporting_docs_google_ads_source\".\"stg_google_ads__ad_history_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.148631Z", "completed_at": "2024-07-29T18:33:22.153581Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.154147Z", "completed_at": "2024-07-29T18:33:22.154151Z"}], "thread_id": "Thread-3", "execution_time": 0.006749868392944336, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads_source.stg_google_ads__ad_stats_tmp", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"ad_reporting_docs\".\"google_ads_ad_stats_data\"", "relation_name": "\"postgres\".\"ad_reporting_docs_google_ads_source\".\"stg_google_ads__ad_stats_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.157935Z", "completed_at": "2024-07-29T18:33:22.166103Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.166513Z", "completed_at": "2024-07-29T18:33:22.166518Z"}], "thread_id": "Thread-4", "execution_time": 0.013216972351074219, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads_source.stg_google_ads__campaign_stats_tmp", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"ad_reporting_docs\".\"google_ads_campaign_stats_data\"", "relation_name": "\"postgres\".\"ad_reporting_docs_google_ads_source\".\"stg_google_ads__campaign_stats_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.154479Z", "completed_at": "2024-07-29T18:33:22.166311Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.166881Z", "completed_at": "2024-07-29T18:33:22.166884Z"}], "thread_id": "Thread-2", "execution_time": 0.01381993293762207, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads_source.stg_google_ads__campaign_history_tmp", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"ad_reporting_docs\".\"google_ads_campaign_history_data\"", "relation_name": "\"postgres\".\"ad_reporting_docs_google_ads_source\".\"stg_google_ads__campaign_history_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.162678Z", "completed_at": "2024-07-29T18:33:22.167492Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.168210Z", "completed_at": "2024-07-29T18:33:22.168214Z"}], "thread_id": "Thread-3", "execution_time": 0.0060770511627197266, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads_source.stg_google_ads__keyword_stats_tmp", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"ad_reporting_docs\".\"google_ads_keyword_stats_data\"", "relation_name": "\"postgres\".\"ad_reporting_docs_google_ads_source\".\"stg_google_ads__keyword_stats_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.169428Z", "completed_at": "2024-07-29T18:33:22.180890Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.181108Z", "completed_at": "2024-07-29T18:33:22.181113Z"}], "thread_id": "Thread-4", "execution_time": 0.013213872909545898, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.linkedin_source.stg_linkedin_ads__account_history_tmp", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"ad_reporting_docs\".\"linkedin_ad_account_history_data\"", "relation_name": "\"postgres\".\"ad_reporting_docs_linkedin_ads_source\".\"stg_linkedin_ads__account_history_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.173144Z", "completed_at": "2024-07-29T18:33:22.181770Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.182418Z", "completed_at": "2024-07-29T18:33:22.182422Z"}], "thread_id": "Thread-2", "execution_time": 0.013924837112426758, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign_tmp", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"ad_reporting_docs\".\"linkedin_ad_analytics_by_campaign_data\"", "relation_name": "\"postgres\".\"ad_reporting_docs_linkedin_ads_source\".\"stg_linkedin_ads__ad_analytics_by_campaign_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.176889Z", "completed_at": "2024-07-29T18:33:22.182217Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.182963Z", "completed_at": "2024-07-29T18:33:22.182967Z"}], "thread_id": "Thread-3", "execution_time": 0.010114192962646484, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_creative_tmp", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"ad_reporting_docs\".\"linkedin_ad_analytics_by_creative_data\"", "relation_name": "\"postgres\".\"ad_reporting_docs_linkedin_ads_source\".\"stg_linkedin_ads__ad_analytics_by_creative_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.183555Z", "completed_at": "2024-07-29T18:33:22.188174Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.195140Z", "completed_at": "2024-07-29T18:33:22.195145Z"}], "thread_id": "Thread-4", "execution_time": 0.013247013092041016, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.linkedin_source.stg_linkedin_ads__campaign_group_history_tmp", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"ad_reporting_docs\".\"linkedin_ad_campaign_group_history_data\"", "relation_name": "\"postgres\".\"ad_reporting_docs_linkedin_ads_source\".\"stg_linkedin_ads__campaign_group_history_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.191777Z", "completed_at": "2024-07-29T18:33:22.200490Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.200905Z", "completed_at": "2024-07-29T18:33:22.200910Z"}], "thread_id": "Thread-3", "execution_time": 0.013450145721435547, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.linkedin_source.stg_linkedin_ads__creative_history_tmp", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"ad_reporting_docs\".\"linkedin_ad_creative_history_data\"", "relation_name": "\"postgres\".\"ad_reporting_docs_linkedin_ads_source\".\"stg_linkedin_ads__creative_history_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.188356Z", "completed_at": "2024-07-29T18:33:22.200706Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.201314Z", "completed_at": "2024-07-29T18:33:22.201317Z"}], "thread_id": "Thread-2", "execution_time": 0.014104127883911133, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.linkedin_source.stg_linkedin_ads__campaign_history_tmp", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"ad_reporting_docs\".\"linkedin_ad_campaign_history_data\"", "relation_name": "\"postgres\".\"ad_reporting_docs_linkedin_ads_source\".\"stg_linkedin_ads__campaign_history_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.196382Z", "completed_at": "2024-07-29T18:33:22.201646Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.202399Z", "completed_at": "2024-07-29T18:33:22.202402Z"}], "thread_id": "Thread-4", "execution_time": 0.006571769714355469, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__account_daily_report_tmp", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"ad_reporting_docs\".\"microsoft_ads_account_performance_daily_report_data\"", "relation_name": "\"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"stg_microsoft_ads__account_daily_report_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.207566Z", "completed_at": "2024-07-29T18:33:22.214733Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.215157Z", "completed_at": "2024-07-29T18:33:22.215162Z"}], "thread_id": "Thread-2", "execution_time": 0.012223958969116211, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__ad_daily_report_tmp", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"ad_reporting_docs\".\"microsoft_ads_ad_performance_daily_report_data\"", "relation_name": "\"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"stg_microsoft_ads__ad_daily_report_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.204090Z", "completed_at": "2024-07-29T18:33:22.214954Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.215709Z", "completed_at": "2024-07-29T18:33:22.215713Z"}], "thread_id": "Thread-3", "execution_time": 0.012991189956665039, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__account_history_tmp", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"ad_reporting_docs\".\"microsoft_ads_account_history_data\"", "relation_name": "\"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"stg_microsoft_ads__account_history_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.211201Z", "completed_at": "2024-07-29T18:33:22.215507Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.216333Z", "completed_at": "2024-07-29T18:33:22.216336Z"}], "thread_id": "Thread-4", "execution_time": 0.012511014938354492, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__ad_group_daily_report_tmp", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"ad_reporting_docs\".\"microsoft_ads_ad_group_performance_daily_report_data\"", "relation_name": "\"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"stg_microsoft_ads__ad_group_daily_report_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.218302Z", "completed_at": "2024-07-29T18:33:22.279500Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.279721Z", "completed_at": "2024-07-29T18:33:22.279728Z"}], "thread_id": "Thread-2", "execution_time": 0.0628349781036377, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__ad_group_history_tmp", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"ad_reporting_docs\".\"microsoft_ads_ad_group_history_data\"", "relation_name": "\"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"stg_microsoft_ads__ad_group_history_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.275841Z", "completed_at": "2024-07-29T18:33:22.284152Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.284399Z", "completed_at": "2024-07-29T18:33:22.284403Z"}], "thread_id": "Thread-4", "execution_time": 0.06656789779663086, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__campaign_daily_report_tmp", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"ad_reporting_docs\".\"microsoft_ads_campaign_performance_daily_report_data\"", "relation_name": "\"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"stg_microsoft_ads__campaign_daily_report_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.222529Z", "completed_at": "2024-07-29T18:33:22.289409Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.289622Z", "completed_at": "2024-07-29T18:33:22.289627Z"}], "thread_id": "Thread-3", "execution_time": 0.07220602035522461, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__ad_history_tmp", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"ad_reporting_docs\".\"microsoft_ads_ad_history_data\"", "relation_name": "\"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"stg_microsoft_ads__ad_history_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.290691Z", "completed_at": "2024-07-29T18:33:22.294322Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.294526Z", "completed_at": "2024-07-29T18:33:22.294530Z"}], "thread_id": "Thread-3", "execution_time": 0.004400014877319336, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__keyword_history_tmp", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"ad_reporting_docs\".\"microsoft_ads_keyword_history_data\"", "relation_name": "\"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"stg_microsoft_ads__keyword_history_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.285374Z", "completed_at": "2024-07-29T18:33:22.298951Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.299434Z", "completed_at": "2024-07-29T18:33:22.299439Z"}], "thread_id": "Thread-4", "execution_time": 0.014522790908813477, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__keyword_daily_report_tmp", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"ad_reporting_docs\".\"microsoft_ads_keyword_performance_daily_report_data\"", "relation_name": "\"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"stg_microsoft_ads__keyword_daily_report_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.280743Z", "completed_at": "2024-07-29T18:33:22.299199Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.299829Z", "completed_at": "2024-07-29T18:33:22.299832Z"}], "thread_id": "Thread-2", "execution_time": 0.019549846649169922, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__campaign_history_tmp", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"ad_reporting_docs\".\"microsoft_ads_campaign_history_data\"", "relation_name": "\"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"stg_microsoft_ads__campaign_history_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.295470Z", "completed_at": "2024-07-29T18:33:22.300140Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.300794Z", "completed_at": "2024-07-29T18:33:22.300797Z"}], "thread_id": "Thread-3", "execution_time": 0.005770444869995117, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__search_daily_report_tmp", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"ad_reporting_docs\".\"microsoft_ads_search_performance_daily_report_data\"", "relation_name": "\"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"stg_microsoft_ads__search_daily_report_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.302435Z", "completed_at": "2024-07-29T18:33:22.313766Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.313975Z", "completed_at": "2024-07-29T18:33:22.313980Z"}], "thread_id": "Thread-4", "execution_time": 0.012896060943603516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest_source.stg_pinterest_ads__ad_group_history_tmp", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"ad_reporting_docs\".\"pinterest_ad_group_history_data\"", "relation_name": "\"postgres\".\"ad_reporting_docs_pinterest_source\".\"stg_pinterest_ads__ad_group_history_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.305903Z", "completed_at": "2024-07-29T18:33:22.318337Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.318562Z", "completed_at": "2024-07-29T18:33:22.318567Z"}], "thread_id": "Thread-2", "execution_time": 0.01725912094116211, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest_source.stg_pinterest_ads__ad_group_report_tmp", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"ad_reporting_docs\".\"pinterest_ad_group_report_data\"", "relation_name": "\"postgres\".\"ad_reporting_docs_pinterest_source\".\"stg_pinterest_ads__ad_group_report_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.310288Z", "completed_at": "2024-07-29T18:33:22.319672Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.323523Z", "completed_at": "2024-07-29T18:33:22.323528Z"}], "thread_id": "Thread-3", "execution_time": 0.021371126174926758, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest_source.stg_pinterest_ads__advertiser_history_tmp", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"ad_reporting_docs\".\"pinterest_advertiser_history_data\"", "relation_name": "\"postgres\".\"ad_reporting_docs_pinterest_source\".\"stg_pinterest_ads__advertiser_history_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.314967Z", "completed_at": "2024-07-29T18:33:22.323302Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.323913Z", "completed_at": "2024-07-29T18:33:22.323917Z"}], "thread_id": "Thread-4", "execution_time": 0.009406805038452148, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest_source.stg_pinterest_ads__advertiser_report_tmp", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"ad_reporting_docs\".\"pinterest_advertiser_report_data\"", "relation_name": "\"postgres\".\"ad_reporting_docs_pinterest_source\".\"stg_pinterest_ads__advertiser_report_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.319900Z", "completed_at": "2024-07-29T18:33:22.324781Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.325498Z", "completed_at": "2024-07-29T18:33:22.325501Z"}], "thread_id": "Thread-2", "execution_time": 0.006371021270751953, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest_source.stg_pinterest_ads__campaign_history_tmp", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"ad_reporting_docs\".\"pinterest_campaign_history_data\"", "relation_name": "\"postgres\".\"ad_reporting_docs_pinterest_source\".\"stg_pinterest_ads__campaign_history_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.330670Z", "completed_at": "2024-07-29T18:33:22.338455Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.338683Z", "completed_at": "2024-07-29T18:33:22.338689Z"}], "thread_id": "Thread-4", "execution_time": 0.01346898078918457, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest_source.stg_pinterest_ads__keyword_history_tmp", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"ad_reporting_docs\".\"pinterest_keyword_history_data\"", "relation_name": "\"postgres\".\"ad_reporting_docs_pinterest_source\".\"stg_pinterest_ads__keyword_history_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.326464Z", "completed_at": "2024-07-29T18:33:22.339311Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.339987Z", "completed_at": "2024-07-29T18:33:22.339992Z"}], "thread_id": "Thread-3", "execution_time": 0.014993906021118164, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest_source.stg_pinterest_ads__campaign_report_tmp", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"ad_reporting_docs\".\"pinterest_campaign_report_data\"", "relation_name": "\"postgres\".\"ad_reporting_docs_pinterest_source\".\"stg_pinterest_ads__campaign_report_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.334674Z", "completed_at": "2024-07-29T18:33:22.339517Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.340347Z", "completed_at": "2024-07-29T18:33:22.340351Z"}], "thread_id": "Thread-2", "execution_time": 0.006268024444580078, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest_source.stg_pinterest_ads__keyword_report_tmp", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"ad_reporting_docs\".\"pinterest_keyword_report_data\"", "relation_name": "\"postgres\".\"ad_reporting_docs_pinterest_source\".\"stg_pinterest_ads__keyword_report_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.341429Z", "completed_at": "2024-07-29T18:33:22.353462Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.353757Z", "completed_at": "2024-07-29T18:33:22.353763Z"}], "thread_id": "Thread-4", "execution_time": 0.014111042022705078, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest_source.stg_pinterest_ads__pin_promotion_history_tmp", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"ad_reporting_docs\".\"pinterest_pin_promotion_history_data\"", "relation_name": "\"postgres\".\"ad_reporting_docs_pinterest_source\".\"stg_pinterest_ads__pin_promotion_history_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.350066Z", "completed_at": "2024-07-29T18:33:22.358659Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.359097Z", "completed_at": "2024-07-29T18:33:22.359103Z"}], "thread_id": "Thread-2", "execution_time": 0.013968944549560547, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.reddit_ads_source.stg_reddit_ads__account_report_tmp", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"ad_reporting_docs\".\"reddit_ads_account_report_data\"", "relation_name": "\"postgres\".\"ad_reporting_docs_reddit_ads_source\".\"stg_reddit_ads__account_report_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.345904Z", "completed_at": "2024-07-29T18:33:22.358886Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.359486Z", "completed_at": "2024-07-29T18:33:22.359489Z"}], "thread_id": "Thread-3", "execution_time": 0.014571905136108398, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest_source.stg_pinterest_ads__pin_promotion_report_tmp", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"ad_reporting_docs\".\"pinterest_pin_promotion_report_data\"", "relation_name": "\"postgres\".\"ad_reporting_docs_pinterest_source\".\"stg_pinterest_ads__pin_promotion_report_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.354883Z", "completed_at": "2024-07-29T18:33:22.360104Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.360856Z", "completed_at": "2024-07-29T18:33:22.360860Z"}], "thread_id": "Thread-4", "execution_time": 0.006561994552612305, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.reddit_ads_source.stg_reddit_ads__account_tmp", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"ad_reporting_docs\".\"reddit_ads_account_data\"", "relation_name": "\"postgres\".\"ad_reporting_docs_reddit_ads_source\".\"stg_reddit_ads__account_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.365881Z", "completed_at": "2024-07-29T18:33:22.373894Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.374300Z", "completed_at": "2024-07-29T18:33:22.374306Z"}], "thread_id": "Thread-3", "execution_time": 0.013154983520507812, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.reddit_ads_source.stg_reddit_ads__ad_group_tmp", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"ad_reporting_docs\".\"reddit_ads_ad_group_data\"", "relation_name": "\"postgres\".\"ad_reporting_docs_reddit_ads_source\".\"stg_reddit_ads__ad_group_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.362093Z", "completed_at": "2024-07-29T18:33:22.374113Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.374683Z", "completed_at": "2024-07-29T18:33:22.374687Z"}], "thread_id": "Thread-2", "execution_time": 0.01414179801940918, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.reddit_ads_source.stg_reddit_ads__ad_group_report_tmp", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"ad_reporting_docs\".\"reddit_ads_ad_group_report_data\"", "relation_name": "\"postgres\".\"ad_reporting_docs_reddit_ads_source\".\"stg_reddit_ads__ad_group_report_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.370367Z", "completed_at": "2024-07-29T18:33:22.375253Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.376000Z", "completed_at": "2024-07-29T18:33:22.376004Z"}], "thread_id": "Thread-4", "execution_time": 0.010405778884887695, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.reddit_ads_source.stg_reddit_ads__ad_report_tmp", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"ad_reporting_docs\".\"reddit_ads_ad_report_data\"", "relation_name": "\"postgres\".\"ad_reporting_docs_reddit_ads_source\".\"stg_reddit_ads__ad_report_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.377195Z", "completed_at": "2024-07-29T18:33:22.388734Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.388954Z", "completed_at": "2024-07-29T18:33:22.388958Z"}], "thread_id": "Thread-3", "execution_time": 0.013267993927001953, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.reddit_ads_source.stg_reddit_ads__ad_tmp", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"ad_reporting_docs\".\"reddit_ads_ad_data\"", "relation_name": "\"postgres\".\"ad_reporting_docs_reddit_ads_source\".\"stg_reddit_ads__ad_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.380884Z", "completed_at": "2024-07-29T18:33:22.393553Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.393964Z", "completed_at": "2024-07-29T18:33:22.393969Z"}], "thread_id": "Thread-2", "execution_time": 0.01769089698791504, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.reddit_ads_source.stg_reddit_ads__campaign_report_tmp", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"ad_reporting_docs\".\"reddit_ads_campaign_report_data\"", "relation_name": "\"postgres\".\"ad_reporting_docs_reddit_ads_source\".\"stg_reddit_ads__campaign_report_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.384570Z", "completed_at": "2024-07-29T18:33:22.393748Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.394512Z", "completed_at": "2024-07-29T18:33:22.394516Z"}], "thread_id": "Thread-4", "execution_time": 0.013913869857788086, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.reddit_ads_source.stg_reddit_ads__campaign_tmp", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"ad_reporting_docs\".\"reddit_ads_campaign_data\"", "relation_name": "\"postgres\".\"ad_reporting_docs_reddit_ads_source\".\"stg_reddit_ads__campaign_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.390073Z", "completed_at": "2024-07-29T18:33:22.394318Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.395068Z", "completed_at": "2024-07-29T18:33:22.395071Z"}], "thread_id": "Thread-3", "execution_time": 0.005572080612182617, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_account_history_tmp", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"ad_reporting_docs\".\"snapchat_ad_account_history_data\"", "relation_name": "\"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"stg_snapchat_ads__ad_account_history_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.400762Z", "completed_at": "2024-07-29T18:33:22.408655Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.408921Z", "completed_at": "2024-07-29T18:33:22.408928Z"}], "thread_id": "Thread-4", "execution_time": 0.012824058532714844, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report_tmp", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"ad_reporting_docs\".\"snapchat_ad_hourly_report_data\"", "relation_name": "\"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"stg_snapchat_ads__ad_hourly_report_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.397127Z", "completed_at": "2024-07-29T18:33:22.413490Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.413987Z", "completed_at": "2024-07-29T18:33:22.413992Z"}], "thread_id": "Thread-2", "execution_time": 0.018370866775512695, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_history_tmp", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"ad_reporting_docs\".\"snapchat_ad_history_data\"", "relation_name": "\"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"stg_snapchat_ads__ad_history_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.404177Z", "completed_at": "2024-07-29T18:33:22.413705Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.414386Z", "completed_at": "2024-07-29T18:33:22.414390Z"}], "thread_id": "Thread-3", "execution_time": 0.017806053161621094, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history_tmp", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"ad_reporting_docs\".\"snapchat_ad_squad_history_data\"", "relation_name": "\"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"stg_snapchat_ads__ad_squad_history_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.409970Z", "completed_at": "2024-07-29T18:33:22.414962Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.415701Z", "completed_at": "2024-07-29T18:33:22.415705Z"}], "thread_id": "Thread-4", "execution_time": 0.0061991214752197266, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_hourly_report_tmp", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"ad_reporting_docs\".\"snapchat_ad_squad_hourly_report_data\"", "relation_name": "\"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"stg_snapchat_ads__ad_squad_hourly_report_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.416909Z", "completed_at": "2024-07-29T18:33:22.428477Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.428724Z", "completed_at": "2024-07-29T18:33:22.428729Z"}], "thread_id": "Thread-2", "execution_time": 0.013337850570678711, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__campaign_history_tmp", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"ad_reporting_docs\".\"snapchat_campaign_history_data\"", "relation_name": "\"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"stg_snapchat_ads__campaign_history_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.420586Z", "completed_at": "2024-07-29T18:33:22.429362Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.430025Z", "completed_at": "2024-07-29T18:33:22.430029Z"}], "thread_id": "Thread-3", "execution_time": 0.014050006866455078, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__campaign_hourly_report_tmp", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"ad_reporting_docs\".\"snapchat_campaign_hourly_report_data\"", "relation_name": "\"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"stg_snapchat_ads__campaign_hourly_report_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.424284Z", "completed_at": "2024-07-29T18:33:22.429818Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.430580Z", "completed_at": "2024-07-29T18:33:22.430584Z"}], "thread_id": "Thread-4", "execution_time": 0.010289192199707031, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__creative_history_tmp", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"ad_reporting_docs\".\"snapchat_creative_history_data\"", "relation_name": "\"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"stg_snapchat_ads__creative_history_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.431177Z", "completed_at": "2024-07-29T18:33:22.435805Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.442759Z", "completed_at": "2024-07-29T18:33:22.442764Z"}], "thread_id": "Thread-2", "execution_time": 0.01325225830078125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__creative_url_tag_history_tmp", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"ad_reporting_docs\".\"snapchat_creative_url_tag_history_data\"", "relation_name": "\"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"stg_snapchat_ads__creative_url_tag_history_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.435991Z", "completed_at": "2024-07-29T18:33:22.448443Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.449049Z", "completed_at": "2024-07-29T18:33:22.449055Z"}], "thread_id": "Thread-3", "execution_time": 0.014280080795288086, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__ad_group_history_tmp", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"ad_reporting_docs\".\"tiktok_adgroup_history_data\"", "relation_name": "\"postgres\".\"ad_reporting_docs_stg_tiktok_ads\".\"stg_tiktok_ads__ad_group_history_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.439394Z", "completed_at": "2024-07-29T18:33:22.448749Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.449478Z", "completed_at": "2024-07-29T18:33:22.449481Z"}], "thread_id": "Thread-4", "execution_time": 0.014380931854248047, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__ad_group_report_hourly_tmp", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"ad_reporting_docs\".\"tiktok_adgroup_report_hourly_data\"", "relation_name": "\"postgres\".\"ad_reporting_docs_stg_tiktok_ads\".\"stg_tiktok_ads__ad_group_report_hourly_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.443972Z", "completed_at": "2024-07-29T18:33:22.450449Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.451438Z", "completed_at": "2024-07-29T18:33:22.451443Z"}], "thread_id": "Thread-2", "execution_time": 0.007992982864379883, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__ad_history_tmp", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"ad_reporting_docs\".\"tiktok_ad_history_data\"", "relation_name": "\"postgres\".\"ad_reporting_docs_stg_tiktok_ads\".\"stg_tiktok_ads__ad_history_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.456579Z", "completed_at": "2024-07-29T18:33:22.464849Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.465529Z", "completed_at": "2024-07-29T18:33:22.465540Z"}], "thread_id": "Thread-4", "execution_time": 0.014475107192993164, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__advertiser_tmp", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"ad_reporting_docs\".\"tiktok_advertiser_data\"", "relation_name": "\"postgres\".\"ad_reporting_docs_stg_tiktok_ads\".\"stg_tiktok_ads__advertiser_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.452497Z", "completed_at": "2024-07-29T18:33:22.465102Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.465954Z", "completed_at": "2024-07-29T18:33:22.465958Z"}], "thread_id": "Thread-3", "execution_time": 0.015280008316040039, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly_tmp", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"ad_reporting_docs\".\"tiktok_ad_report_hourly_data\"", "relation_name": "\"postgres\".\"ad_reporting_docs_stg_tiktok_ads\".\"stg_tiktok_ads__ad_report_hourly_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.460789Z", "completed_at": "2024-07-29T18:33:22.465305Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.466315Z", "completed_at": "2024-07-29T18:33:22.466319Z"}], "thread_id": "Thread-2", "execution_time": 0.006273031234741211, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__campaign_history_tmp", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"ad_reporting_docs\".\"tiktok_campaign_history_data\"", "relation_name": "\"postgres\".\"ad_reporting_docs_stg_tiktok_ads\".\"stg_tiktok_ads__campaign_history_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.468772Z", "completed_at": "2024-07-29T18:33:22.480662Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.480878Z", "completed_at": "2024-07-29T18:33:22.480884Z"}], "thread_id": "Thread-4", "execution_time": 0.013462066650390625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__campaign_report_hourly_tmp", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"ad_reporting_docs\".\"tiktok_campaign_report_hourly_data\"", "relation_name": "\"postgres\".\"ad_reporting_docs_stg_tiktok_ads\".\"stg_tiktok_ads__campaign_report_hourly_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.473540Z", "completed_at": "2024-07-29T18:33:22.481739Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.482206Z", "completed_at": "2024-07-29T18:33:22.482210Z"}], "thread_id": "Thread-3", "execution_time": 0.014511823654174805, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.twitter_ads_source.stg_twitter_ads__account_history_tmp", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"ad_reporting_docs\".\"twitter_account_history_data\"", "relation_name": "\"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"stg_twitter_ads__account_history_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.477068Z", "completed_at": "2024-07-29T18:33:22.482575Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.486571Z", "completed_at": "2024-07-29T18:33:22.486576Z"}], "thread_id": "Thread-2", "execution_time": 0.01866006851196289, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.twitter_ads_source.stg_twitter_ads__campaign_history_tmp", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"ad_reporting_docs\".\"twitter_campaign_history_data\"", "relation_name": "\"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"stg_twitter_ads__campaign_history_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.482765Z", "completed_at": "2024-07-29T18:33:22.487933Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.492503Z", "completed_at": "2024-07-29T18:33:22.492508Z"}], "thread_id": "Thread-4", "execution_time": 0.011101961135864258, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.twitter_ads_source.stg_twitter_ads__campaign_report_tmp", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"ad_reporting_docs\".\"twitter_campaign_report_data\"", "relation_name": "\"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"stg_twitter_ads__campaign_report_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.488122Z", "completed_at": "2024-07-29T18:33:22.497756Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.502199Z", "completed_at": "2024-07-29T18:33:22.502208Z"}], "thread_id": "Thread-3", "execution_time": 0.015295982360839844, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.twitter_ads_source.stg_twitter_ads__line_item_history_tmp", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"ad_reporting_docs\".\"twitter_line_item_history_data\"", "relation_name": "\"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"stg_twitter_ads__line_item_history_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.492896Z", "completed_at": "2024-07-29T18:33:22.503126Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.503706Z", "completed_at": "2024-07-29T18:33:22.503711Z"}], "thread_id": "Thread-2", "execution_time": 0.016047239303588867, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.twitter_ads_source.stg_twitter_ads__line_item_report_tmp", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"ad_reporting_docs\".\"twitter_line_item_report_data\"", "relation_name": "\"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"stg_twitter_ads__line_item_report_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.498013Z", "completed_at": "2024-07-29T18:33:22.504089Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.504777Z", "completed_at": "2024-07-29T18:33:22.504781Z"}], "thread_id": "Thread-4", "execution_time": 0.007640838623046875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_history_tmp", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"ad_reporting_docs\".\"twitter_promoted_tweet_history_data\"", "relation_name": "\"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"stg_twitter_ads__promoted_tweet_history_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.505136Z", "completed_at": "2024-07-29T18:33:22.514354Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.514814Z", "completed_at": "2024-07-29T18:33:22.514818Z"}], "thread_id": "Thread-3", "execution_time": 0.011485099792480469, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report_tmp", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"ad_reporting_docs\".\"twitter_promoted_tweet_report_data\"", "relation_name": "\"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"stg_twitter_ads__promoted_tweet_report_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.509904Z", "completed_at": "2024-07-29T18:33:22.519186Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.519678Z", "completed_at": "2024-07-29T18:33:22.519682Z"}], "thread_id": "Thread-2", "execution_time": 0.010895013809204102, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.twitter_ads_source.stg_twitter_ads__tweet_tmp", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"ad_reporting_docs\".\"twitter_tweet_data\"", "relation_name": "\"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"stg_twitter_ads__tweet_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.515220Z", "completed_at": "2024-07-29T18:33:22.520455Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.522706Z", "completed_at": "2024-07-29T18:33:22.522711Z"}], "thread_id": "Thread-4", "execution_time": 0.013099193572998047, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.twitter_ads_source.stg_twitter_ads__tweet_url_tmp", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n select * \n from \"postgres\".\"ad_reporting_docs\".\"twitter_tweet_url_data\"", "relation_name": "\"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"stg_twitter_ads__tweet_url_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.520661Z", "completed_at": "2024-07-29T18:33:22.522204Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.523063Z", "completed_at": "2024-07-29T18:33:22.523066Z"}], "thread_id": "Thread-3", "execution_time": 0.0037009716033935547, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.amazon_ads_ad_group_history_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.524145Z", "completed_at": "2024-07-29T18:33:22.525615Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.526333Z", "completed_at": "2024-07-29T18:33:22.526339Z"}], "thread_id": "Thread-2", "execution_time": 0.003936052322387695, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.amazon_ads_ad_group_level_report_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.527570Z", "completed_at": "2024-07-29T18:33:22.529927Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.532385Z", "completed_at": "2024-07-29T18:33:22.532391Z"}], "thread_id": "Thread-4", "execution_time": 0.0065991878509521484, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.amazon_ads_advertised_product_report_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.530194Z", "completed_at": "2024-07-29T18:33:22.531829Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.532812Z", "completed_at": "2024-07-29T18:33:22.532815Z"}], "thread_id": "Thread-3", "execution_time": 0.006777048110961914, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.amazon_ads_campaign_history_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.533844Z", "completed_at": "2024-07-29T18:33:22.535346Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.535997Z", "completed_at": "2024-07-29T18:33:22.536002Z"}], "thread_id": "Thread-2", "execution_time": 0.003947019577026367, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.amazon_ads_campaign_level_report_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.536936Z", "completed_at": "2024-07-29T18:33:22.538350Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.541059Z", "completed_at": "2024-07-29T18:33:22.541064Z"}], "thread_id": "Thread-4", "execution_time": 0.005585908889770508, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.amazon_ads_keyword_history_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.538574Z", "completed_at": "2024-07-29T18:33:22.540603Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.541427Z", "completed_at": "2024-07-29T18:33:22.541430Z"}], "thread_id": "Thread-3", "execution_time": 0.005686044692993164, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.amazon_ads_portfolio_history_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.542406Z", "completed_at": "2024-07-29T18:33:22.543917Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.544660Z", "completed_at": "2024-07-29T18:33:22.544665Z"}], "thread_id": "Thread-2", "execution_time": 0.003932952880859375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.amazon_ads_product_ad_history_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.545669Z", "completed_at": "2024-07-29T18:33:22.547069Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.549130Z", "completed_at": "2024-07-29T18:33:22.549134Z"}], "thread_id": "Thread-4", "execution_time": 0.00499415397644043, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.amazon_ads_profile_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.547316Z", "completed_at": "2024-07-29T18:33:22.548696Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.549462Z", "completed_at": "2024-07-29T18:33:22.549466Z"}], "thread_id": "Thread-3", "execution_time": 0.005073070526123047, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.amazon_ads_search_term_ad_keyword_report_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.550429Z", "completed_at": "2024-07-29T18:33:22.552450Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.553087Z", "completed_at": "2024-07-29T18:33:22.553091Z"}], "thread_id": "Thread-2", "execution_time": 0.004230976104736328, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.amazon_ads_targeting_keyword_report_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.553990Z", "completed_at": "2024-07-29T18:33:22.555390Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.557583Z", "completed_at": "2024-07-29T18:33:22.557588Z"}], "thread_id": "Thread-4", "execution_time": 0.00497889518737793, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.apple_search_ad_group_history_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.555618Z", "completed_at": "2024-07-29T18:33:22.557087Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.557932Z", "completed_at": "2024-07-29T18:33:22.557935Z"}], "thread_id": "Thread-3", "execution_time": 0.0051059722900390625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.apple_search_ad_group_report_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.558931Z", "completed_at": "2024-07-29T18:33:22.560413Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.561083Z", "completed_at": "2024-07-29T18:33:22.561087Z"}], "thread_id": "Thread-2", "execution_time": 0.0038042068481445312, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.apple_search_ad_history_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.562057Z", "completed_at": "2024-07-29T18:33:22.564646Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.569579Z", "completed_at": "2024-07-29T18:33:22.569589Z"}], "thread_id": "Thread-4", "execution_time": 0.009049177169799805, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.apple_search_ad_report_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.566935Z", "completed_at": "2024-07-29T18:33:22.568840Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.570124Z", "completed_at": "2024-07-29T18:33:22.570133Z"}], "thread_id": "Thread-3", "execution_time": 0.009346961975097656, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.apple_search_campaign_history_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.571450Z", "completed_at": "2024-07-29T18:33:22.572967Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.573638Z", "completed_at": "2024-07-29T18:33:22.573643Z"}], "thread_id": "Thread-2", "execution_time": 0.004483938217163086, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.apple_search_campaign_report_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.574546Z", "completed_at": "2024-07-29T18:33:22.575958Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.578750Z", "completed_at": "2024-07-29T18:33:22.578755Z"}], "thread_id": "Thread-4", "execution_time": 0.005616903305053711, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.apple_search_keyword_history_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.576178Z", "completed_at": "2024-07-29T18:33:22.577538Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.579090Z", "completed_at": "2024-07-29T18:33:22.579093Z"}], "thread_id": "Thread-3", "execution_time": 0.005713224411010742, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.apple_search_keyword_report_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.580138Z", "completed_at": "2024-07-29T18:33:22.581755Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.582564Z", "completed_at": "2024-07-29T18:33:22.582570Z"}], "thread_id": "Thread-2", "execution_time": 0.00487208366394043, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.apple_search_organization_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.583529Z", "completed_at": "2024-07-29T18:33:22.585087Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.587152Z", "completed_at": "2024-07-29T18:33:22.587156Z"}], "thread_id": "Thread-4", "execution_time": 0.005145072937011719, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.apple_search_search_term_report_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.585321Z", "completed_at": "2024-07-29T18:33:22.586717Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.587486Z", "completed_at": "2024-07-29T18:33:22.587489Z"}], "thread_id": "Thread-3", "execution_time": 0.005202293395996094, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.facebook_ads_account_history_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.588578Z", "completed_at": "2024-07-29T18:33:22.590289Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.591074Z", "completed_at": "2024-07-29T18:33:22.591080Z"}], "thread_id": "Thread-2", "execution_time": 0.004201173782348633, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.facebook_ads_ad_history_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.592048Z", "completed_at": "2024-07-29T18:33:22.594432Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.596535Z", "completed_at": "2024-07-29T18:33:22.596542Z"}], "thread_id": "Thread-4", "execution_time": 0.006039857864379883, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.facebook_ads_ad_set_history_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.594693Z", "completed_at": "2024-07-29T18:33:22.596095Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.596872Z", "completed_at": "2024-07-29T18:33:22.596875Z"}], "thread_id": "Thread-3", "execution_time": 0.006079912185668945, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.facebook_ads_basic_ad_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.597906Z", "completed_at": "2024-07-29T18:33:22.599335Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.599996Z", "completed_at": "2024-07-29T18:33:22.600000Z"}], "thread_id": "Thread-2", "execution_time": 0.0037450790405273438, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.facebook_ads_campaign_history_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.600924Z", "completed_at": "2024-07-29T18:33:22.602330Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.605039Z", "completed_at": "2024-07-29T18:33:22.605044Z"}], "thread_id": "Thread-4", "execution_time": 0.005545139312744141, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.facebook_ads_creative_history_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.602549Z", "completed_at": "2024-07-29T18:33:22.604577Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.605373Z", "completed_at": "2024-07-29T18:33:22.605376Z"}], "thread_id": "Thread-3", "execution_time": 0.0056400299072265625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.google_ads_account_history_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.606349Z", "completed_at": "2024-07-29T18:33:22.607738Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.608433Z", "completed_at": "2024-07-29T18:33:22.608438Z"}], "thread_id": "Thread-2", "execution_time": 0.0036890506744384766, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.google_ads_account_stats_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.609345Z", "completed_at": "2024-07-29T18:33:22.610703Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.612852Z", "completed_at": "2024-07-29T18:33:22.612856Z"}], "thread_id": "Thread-4", "execution_time": 0.0049588680267333984, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.google_ads_ad_group_criterion_history_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.610919Z", "completed_at": "2024-07-29T18:33:22.612374Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.613193Z", "completed_at": "2024-07-29T18:33:22.613196Z"}], "thread_id": "Thread-3", "execution_time": 0.005074739456176758, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.google_ads_ad_group_history_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.614165Z", "completed_at": "2024-07-29T18:33:22.616321Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.616999Z", "completed_at": "2024-07-29T18:33:22.617003Z"}], "thread_id": "Thread-2", "execution_time": 0.0044329166412353516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.google_ads_ad_group_stats_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.617906Z", "completed_at": "2024-07-29T18:33:22.619309Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.621337Z", "completed_at": "2024-07-29T18:33:22.621342Z"}], "thread_id": "Thread-4", "execution_time": 0.004829883575439453, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.google_ads_ad_history_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.619527Z", "completed_at": "2024-07-29T18:33:22.620908Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.621661Z", "completed_at": "2024-07-29T18:33:22.621665Z"}], "thread_id": "Thread-3", "execution_time": 0.00492095947265625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.google_ads_ad_stats_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.622606Z", "completed_at": "2024-07-29T18:33:22.624008Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.624627Z", "completed_at": "2024-07-29T18:33:22.624631Z"}], "thread_id": "Thread-2", "execution_time": 0.0035610198974609375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.google_ads_campaign_history_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.625521Z", "completed_at": "2024-07-29T18:33:22.627524Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.629521Z", "completed_at": "2024-07-29T18:33:22.629527Z"}], "thread_id": "Thread-4", "execution_time": 0.005366086959838867, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.google_ads_campaign_stats_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.627741Z", "completed_at": "2024-07-29T18:33:22.629110Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.629851Z", "completed_at": "2024-07-29T18:33:22.629855Z"}], "thread_id": "Thread-3", "execution_time": 0.0054781436920166016, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.google_ads_keyword_stats_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.630879Z", "completed_at": "2024-07-29T18:33:22.632313Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.632953Z", "completed_at": "2024-07-29T18:33:22.632957Z"}], "thread_id": "Thread-2", "execution_time": 0.0037000179290771484, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.linkedin_ad_account_history_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.633866Z", "completed_at": "2024-07-29T18:33:22.635267Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.637898Z", "completed_at": "2024-07-29T18:33:22.637903Z"}], "thread_id": "Thread-4", "execution_time": 0.00542902946472168, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.linkedin_ad_analytics_by_campaign_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.635495Z", "completed_at": "2024-07-29T18:33:22.637474Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.638226Z", "completed_at": "2024-07-29T18:33:22.638229Z"}], "thread_id": "Thread-3", "execution_time": 0.005569934844970703, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.linkedin_ad_analytics_by_creative_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.639229Z", "completed_at": "2024-07-29T18:33:22.640628Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.641252Z", "completed_at": "2024-07-29T18:33:22.641256Z"}], "thread_id": "Thread-2", "execution_time": 0.0036230087280273438, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.linkedin_ad_campaign_group_history_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.642155Z", "completed_at": "2024-07-29T18:33:22.643567Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.645841Z", "completed_at": "2024-07-29T18:33:22.645846Z"}], "thread_id": "Thread-4", "execution_time": 0.005071163177490234, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.linkedin_ad_campaign_history_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.643785Z", "completed_at": "2024-07-29T18:33:22.645355Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.646189Z", "completed_at": "2024-07-29T18:33:22.646193Z"}], "thread_id": "Thread-3", "execution_time": 0.005197048187255859, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.linkedin_ad_creative_history_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.647167Z", "completed_at": "2024-07-29T18:33:22.649206Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.649852Z", "completed_at": "2024-07-29T18:33:22.649856Z"}], "thread_id": "Thread-2", "execution_time": 0.004309177398681641, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_account_history_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.650778Z", "completed_at": "2024-07-29T18:33:22.652187Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.654211Z", "completed_at": "2024-07-29T18:33:22.654215Z"}], "thread_id": "Thread-4", "execution_time": 0.004845142364501953, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_account_performance_daily_report_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.652404Z", "completed_at": "2024-07-29T18:33:22.653785Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.654544Z", "completed_at": "2024-07-29T18:33:22.654547Z"}], "thread_id": "Thread-3", "execution_time": 0.004952907562255859, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_ad_group_history_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.655499Z", "completed_at": "2024-07-29T18:33:22.656894Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.657521Z", "completed_at": "2024-07-29T18:33:22.657525Z"}], "thread_id": "Thread-2", "execution_time": 0.0035822391510009766, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_ad_group_performance_daily_report_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.658492Z", "completed_at": "2024-07-29T18:33:22.660692Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.663001Z", "completed_at": "2024-07-29T18:33:22.663006Z"}], "thread_id": "Thread-4", "execution_time": 0.005956888198852539, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_ad_history_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.660997Z", "completed_at": "2024-07-29T18:33:22.662503Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.663344Z", "completed_at": "2024-07-29T18:33:22.663348Z"}], "thread_id": "Thread-3", "execution_time": 0.006082773208618164, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_ad_performance_daily_report_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.664311Z", "completed_at": "2024-07-29T18:33:22.665732Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.666355Z", "completed_at": "2024-07-29T18:33:22.666359Z"}], "thread_id": "Thread-2", "execution_time": 0.0036690235137939453, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_campaign_history_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.667268Z", "completed_at": "2024-07-29T18:33:22.668675Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.670671Z", "completed_at": "2024-07-29T18:33:22.670675Z"}], "thread_id": "Thread-4", "execution_time": 0.005483150482177734, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_campaign_performance_daily_report_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.668891Z", "completed_at": "2024-07-29T18:33:22.670251Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.671698Z", "completed_at": "2024-07-29T18:33:22.671701Z"}], "thread_id": "Thread-3", "execution_time": 0.005597829818725586, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_keyword_history_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.672645Z", "completed_at": "2024-07-29T18:33:22.674008Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.674634Z", "completed_at": "2024-07-29T18:33:22.674637Z"}], "thread_id": "Thread-2", "execution_time": 0.004233121871948242, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_keyword_performance_daily_report_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.675537Z", "completed_at": "2024-07-29T18:33:22.676926Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.678897Z", "completed_at": "2024-07-29T18:33:22.678901Z"}], "thread_id": "Thread-4", "execution_time": 0.004736661911010742, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_search_performance_daily_report_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.677139Z", "completed_at": "2024-07-29T18:33:22.678486Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.679221Z", "completed_at": "2024-07-29T18:33:22.679224Z"}], "thread_id": "Thread-3", "execution_time": 0.004842042922973633, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.pinterest_ad_group_history_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.680163Z", "completed_at": "2024-07-29T18:33:22.681541Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.682151Z", "completed_at": "2024-07-29T18:33:22.682154Z"}], "thread_id": "Thread-2", "execution_time": 0.00351715087890625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.pinterest_ad_group_report_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.683039Z", "completed_at": "2024-07-29T18:33:22.735899Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.738311Z", "completed_at": "2024-07-29T18:33:22.738318Z"}], "thread_id": "Thread-4", "execution_time": 0.05663800239562988, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.pinterest_advertiser_history_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.736184Z", "completed_at": "2024-07-29T18:33:22.737618Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.738664Z", "completed_at": "2024-07-29T18:33:22.738667Z"}], "thread_id": "Thread-3", "execution_time": 0.056764841079711914, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.pinterest_advertiser_report_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.739828Z", "completed_at": "2024-07-29T18:33:22.741232Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.741906Z", "completed_at": "2024-07-29T18:33:22.741910Z"}], "thread_id": "Thread-2", "execution_time": 0.004111289978027344, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.pinterest_campaign_history_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.742884Z", "completed_at": "2024-07-29T18:33:22.744325Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.747054Z", "completed_at": "2024-07-29T18:33:22.747059Z"}], "thread_id": "Thread-4", "execution_time": 0.00562596321105957, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.pinterest_campaign_report_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.744564Z", "completed_at": "2024-07-29T18:33:22.746609Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.747387Z", "completed_at": "2024-07-29T18:33:22.747391Z"}], "thread_id": "Thread-3", "execution_time": 0.005735158920288086, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.pinterest_keyword_history_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.748341Z", "completed_at": "2024-07-29T18:33:22.749743Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.750368Z", "completed_at": "2024-07-29T18:33:22.750373Z"}], "thread_id": "Thread-2", "execution_time": 0.0035991668701171875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.pinterest_keyword_report_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.751269Z", "completed_at": "2024-07-29T18:33:22.752654Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.754686Z", "completed_at": "2024-07-29T18:33:22.754690Z"}], "thread_id": "Thread-4", "execution_time": 0.004793882369995117, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.pinterest_pin_promotion_history_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.752867Z", "completed_at": "2024-07-29T18:33:22.754256Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.755011Z", "completed_at": "2024-07-29T18:33:22.755015Z"}], "thread_id": "Thread-3", "execution_time": 0.0048980712890625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.pinterest_pin_promotion_report_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.755942Z", "completed_at": "2024-07-29T18:33:22.757985Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.758608Z", "completed_at": "2024-07-29T18:33:22.758612Z"}], "thread_id": "Thread-2", "execution_time": 0.004231929779052734, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.reddit_ads_account_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.759538Z", "completed_at": "2024-07-29T18:33:22.760881Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.762848Z", "completed_at": "2024-07-29T18:33:22.762851Z"}], "thread_id": "Thread-4", "execution_time": 0.0047109127044677734, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.reddit_ads_account_report_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.761093Z", "completed_at": "2024-07-29T18:33:22.762445Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.763166Z", "completed_at": "2024-07-29T18:33:22.763169Z"}], "thread_id": "Thread-3", "execution_time": 0.00481414794921875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.reddit_ads_ad_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.764096Z", "completed_at": "2024-07-29T18:33:22.765485Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.766099Z", "completed_at": "2024-07-29T18:33:22.766103Z"}], "thread_id": "Thread-2", "execution_time": 0.003512859344482422, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.reddit_ads_ad_group_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.766975Z", "completed_at": "2024-07-29T18:33:22.769010Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.770973Z", "completed_at": "2024-07-29T18:33:22.770977Z"}], "thread_id": "Thread-4", "execution_time": 0.005342960357666016, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.reddit_ads_ad_group_report_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.769218Z", "completed_at": "2024-07-29T18:33:22.770571Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.771294Z", "completed_at": "2024-07-29T18:33:22.771297Z"}], "thread_id": "Thread-3", "execution_time": 0.005447864532470703, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.reddit_ads_ad_report_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.772234Z", "completed_at": "2024-07-29T18:33:22.773624Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.774283Z", "completed_at": "2024-07-29T18:33:22.774287Z"}], "thread_id": "Thread-2", "execution_time": 0.0035719871520996094, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.reddit_ads_campaign_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.775188Z", "completed_at": "2024-07-29T18:33:22.776575Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.779262Z", "completed_at": "2024-07-29T18:33:22.779266Z"}], "thread_id": "Thread-4", "execution_time": 0.005478858947753906, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.reddit_ads_campaign_report_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.776789Z", "completed_at": "2024-07-29T18:33:22.778840Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.779591Z", "completed_at": "2024-07-29T18:33:22.779595Z"}], "thread_id": "Thread-3", "execution_time": 0.005575895309448242, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.snapchat_ad_account_history_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.780533Z", "completed_at": "2024-07-29T18:33:22.781920Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.782559Z", "completed_at": "2024-07-29T18:33:22.782563Z"}], "thread_id": "Thread-2", "execution_time": 0.0035669803619384766, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.snapchat_ad_history_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.783482Z", "completed_at": "2024-07-29T18:33:22.784922Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.786978Z", "completed_at": "2024-07-29T18:33:22.786982Z"}], "thread_id": "Thread-4", "execution_time": 0.004904270172119141, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.snapchat_ad_hourly_report_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.785143Z", "completed_at": "2024-07-29T18:33:22.786513Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.787307Z", "completed_at": "2024-07-29T18:33:22.787311Z"}], "thread_id": "Thread-3", "execution_time": 0.0050089359283447266, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.snapchat_ad_squad_history_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.788250Z", "completed_at": "2024-07-29T18:33:22.789654Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.791138Z", "completed_at": "2024-07-29T18:33:22.791142Z"}], "thread_id": "Thread-2", "execution_time": 0.004472017288208008, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.snapchat_ad_squad_hourly_report_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.792042Z", "completed_at": "2024-07-29T18:33:22.793409Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.795400Z", "completed_at": "2024-07-29T18:33:22.795404Z"}], "thread_id": "Thread-4", "execution_time": 0.0055959224700927734, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.snapchat_campaign_history_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.793628Z", "completed_at": "2024-07-29T18:33:22.794981Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.795722Z", "completed_at": "2024-07-29T18:33:22.795725Z"}], "thread_id": "Thread-3", "execution_time": 0.0057027339935302734, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.snapchat_campaign_hourly_report_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.796643Z", "completed_at": "2024-07-29T18:33:22.798016Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.798624Z", "completed_at": "2024-07-29T18:33:22.798627Z"}], "thread_id": "Thread-2", "execution_time": 0.0034906864166259766, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.snapchat_creative_history_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.799499Z", "completed_at": "2024-07-29T18:33:22.800871Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.803650Z", "completed_at": "2024-07-29T18:33:22.803654Z"}], "thread_id": "Thread-4", "execution_time": 0.005486249923706055, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.snapchat_creative_url_tag_history_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.801084Z", "completed_at": "2024-07-29T18:33:22.803230Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.803976Z", "completed_at": "2024-07-29T18:33:22.803979Z"}], "thread_id": "Thread-3", "execution_time": 0.005600690841674805, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.tiktok_ad_history_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.804915Z", "completed_at": "2024-07-29T18:33:22.806366Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.807023Z", "completed_at": "2024-07-29T18:33:22.807027Z"}], "thread_id": "Thread-2", "execution_time": 0.003643035888671875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.tiktok_ad_report_hourly_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.807940Z", "completed_at": "2024-07-29T18:33:22.809338Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.811348Z", "completed_at": "2024-07-29T18:33:22.811352Z"}], "thread_id": "Thread-4", "execution_time": 0.004814863204956055, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.tiktok_adgroup_history_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.809553Z", "completed_at": "2024-07-29T18:33:22.810932Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.811667Z", "completed_at": "2024-07-29T18:33:22.811670Z"}], "thread_id": "Thread-3", "execution_time": 0.004906177520751953, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.tiktok_adgroup_report_hourly_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.812596Z", "completed_at": "2024-07-29T18:33:22.814658Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.815324Z", "completed_at": "2024-07-29T18:33:22.815329Z"}], "thread_id": "Thread-2", "execution_time": 0.004241943359375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.tiktok_advertiser_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.816221Z", "completed_at": "2024-07-29T18:33:22.817581Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.819546Z", "completed_at": "2024-07-29T18:33:22.819550Z"}], "thread_id": "Thread-4", "execution_time": 0.004731178283691406, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.tiktok_campaign_history_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.817791Z", "completed_at": "2024-07-29T18:33:22.819141Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.819861Z", "completed_at": "2024-07-29T18:33:22.819864Z"}], "thread_id": "Thread-3", "execution_time": 0.0047910213470458984, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.tiktok_campaign_report_hourly_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.820786Z", "completed_at": "2024-07-29T18:33:22.822174Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.822787Z", "completed_at": "2024-07-29T18:33:22.822790Z"}], "thread_id": "Thread-2", "execution_time": 0.0035011768341064453, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.twitter_account_history_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.823658Z", "completed_at": "2024-07-29T18:33:22.825746Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.827909Z", "completed_at": "2024-07-29T18:33:22.827913Z"}], "thread_id": "Thread-4", "execution_time": 0.005589962005615234, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.twitter_account_report_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.825964Z", "completed_at": "2024-07-29T18:33:22.827314Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.828226Z", "completed_at": "2024-07-29T18:33:22.828229Z"}], "thread_id": "Thread-3", "execution_time": 0.005690813064575195, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.twitter_campaign_history_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.835089Z", "completed_at": "2024-07-29T18:33:22.836532Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.837225Z", "completed_at": "2024-07-29T18:33:22.837230Z"}], "thread_id": "Thread-2", "execution_time": 0.009619951248168945, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.twitter_campaign_report_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.838531Z", "completed_at": "2024-07-29T18:33:22.839911Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.842682Z", "completed_at": "2024-07-29T18:33:22.842686Z"}], "thread_id": "Thread-4", "execution_time": 0.005988121032714844, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.twitter_line_item_history_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.840106Z", "completed_at": "2024-07-29T18:33:22.842227Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.843025Z", "completed_at": "2024-07-29T18:33:22.843029Z"}], "thread_id": "Thread-3", "execution_time": 0.006074190139770508, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.twitter_line_item_keywords_report_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.844028Z", "completed_at": "2024-07-29T18:33:22.845438Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.846057Z", "completed_at": "2024-07-29T18:33:22.846061Z"}], "thread_id": "Thread-2", "execution_time": 0.0036809444427490234, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.twitter_line_item_report_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.846953Z", "completed_at": "2024-07-29T18:33:22.848349Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.850347Z", "completed_at": "2024-07-29T18:33:22.850351Z"}], "thread_id": "Thread-4", "execution_time": 0.004761934280395508, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.twitter_promoted_tweet_history_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.848568Z", "completed_at": "2024-07-29T18:33:22.849934Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.850675Z", "completed_at": "2024-07-29T18:33:22.850679Z"}], "thread_id": "Thread-3", "execution_time": 0.004872798919677734, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.twitter_promoted_tweet_report_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.851609Z", "completed_at": "2024-07-29T18:33:22.853703Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.854326Z", "completed_at": "2024-07-29T18:33:22.854330Z"}], "thread_id": "Thread-2", "execution_time": 0.004244089126586914, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.twitter_tweet_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.855218Z", "completed_at": "2024-07-29T18:33:22.856598Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.867810Z", "completed_at": "2024-07-29T18:33:22.867815Z"}], "thread_id": "Thread-4", "execution_time": 0.013960123062133789, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.twitter_tweet_url_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:21.930533Z", "completed_at": "2024-07-29T18:33:22.837573Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:22.838324Z", "completed_at": "2024-07-29T18:33:22.838327Z"}], "thread_id": "Thread-1", "execution_time": 0.993171215057373, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.ad_reporting.metricflow_time_spine", "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", "relation_name": "\"postgres\".\"ad_reporting_docs_ad_reporting\".\"metricflow_time_spine\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.856810Z", "completed_at": "2024-07-29T18:33:23.774889Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:23.775164Z", "completed_at": "2024-07-29T18:33:23.775176Z"}], "thread_id": "Thread-3", "execution_time": 1.0014467239379883, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.amazon_ads_source.stg_amazon_ads__ad_group_level_report", "compiled": true, "compiled_code": "\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"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\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\n \n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"stg_amazon_ads__ad_group_level_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.921988Z", "completed_at": "2024-07-29T18:33:23.775540Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:23.775995Z", "completed_at": "2024-07-29T18:33:23.775999Z"}], "thread_id": "Thread-1", "execution_time": 0.9446170330047607, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.amazon_ads_source.stg_amazon_ads__campaign_history", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"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", "relation_name": "\"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"stg_amazon_ads__campaign_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.875471Z", "completed_at": "2024-07-29T18:33:23.775770Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:23.776421Z", "completed_at": "2024-07-29T18:33:23.776424Z"}], "thread_id": "Thread-4", "execution_time": 0.9924511909484863, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.amazon_ads_source.stg_amazon_ads__ad_group_history", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"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", "relation_name": "\"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"stg_amazon_ads__ad_group_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:22.868983Z", "completed_at": "2024-07-29T18:33:23.776204Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:23.776663Z", "completed_at": "2024-07-29T18:33:23.776667Z"}], "thread_id": "Thread-2", "execution_time": 1.0005288124084473, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.amazon_ads_source.stg_amazon_ads__advertised_product_report", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"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 TEXT) as \n \n advertised_asin\n \n , \n cast(null as TEXT) 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\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\n \n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"stg_amazon_ads__advertised_product_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:23.857179Z", "completed_at": "2024-07-29T18:33:24.727027Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:24.727350Z", "completed_at": "2024-07-29T18:33:24.727359Z"}], "thread_id": "Thread-3", "execution_time": 0.9507410526275635, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.amazon_ads_source.stg_amazon_ads__keyword_history", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"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", "relation_name": "\"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"stg_amazon_ads__keyword_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:23.870734Z", "completed_at": "2024-07-29T18:33:24.743292Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:24.743574Z", "completed_at": "2024-07-29T18:33:24.743580Z"}], "thread_id": "Thread-1", "execution_time": 0.9949500560760498, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.amazon_ads_source.stg_amazon_ads__campaign_level_report", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"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 \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\n \n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"stg_amazon_ads__campaign_level_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:23.883842Z", "completed_at": "2024-07-29T18:33:24.727785Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:24.728436Z", "completed_at": "2024-07-29T18:33:24.728441Z"}], "thread_id": "Thread-2", "execution_time": 0.9939227104187012, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.amazon_ads_source.stg_amazon_ads__product_ad_history", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"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", "relation_name": "\"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"stg_amazon_ads__product_ad_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:23.877864Z", "completed_at": "2024-07-29T18:33:24.728108Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:24.728746Z", "completed_at": "2024-07-29T18:33:24.728752Z"}], "thread_id": "Thread-4", "execution_time": 0.9949719905853271, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.amazon_ads_source.stg_amazon_ads__portfolio_history", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"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", "relation_name": "\"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"stg_amazon_ads__portfolio_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:24.808579Z", "completed_at": "2024-07-29T18:33:25.668815Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:25.669240Z", "completed_at": "2024-07-29T18:33:25.669259Z"}], "thread_id": "Thread-3", "execution_time": 0.9420650005340576, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.amazon_ads_source.stg_amazon_ads__profile", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"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", "relation_name": "\"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"stg_amazon_ads__profile\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:24.872194Z", "completed_at": "2024-07-29T18:33:25.701322Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:25.701591Z", "completed_at": "2024-07-29T18:33:25.701597Z"}], "thread_id": "Thread-2", "execution_time": 0.9158360958099365, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.amazon_ads_source.stg_amazon_ads__targeting_keyword_report", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"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\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\n \n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"stg_amazon_ads__targeting_keyword_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:24.867081Z", "completed_at": "2024-07-29T18:33:25.702515Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:25.702776Z", "completed_at": "2024-07-29T18:33:25.702780Z"}], "thread_id": "Thread-1", "execution_time": 0.9166262149810791, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.amazon_ads_source.stg_amazon_ads__search_term_ad_keyword_report", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"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\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\n \n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"stg_amazon_ads__search_term_ad_keyword_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:24.877468Z", "completed_at": "2024-07-29T18:33:25.701846Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:25.702162Z", "completed_at": "2024-07-29T18:33:25.702168Z"}], "thread_id": "Thread-4", "execution_time": 0.9169478416442871, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__ad_group_history", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"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", "relation_name": "\"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"stg_apple_search_ads__ad_group_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:25.751526Z", "completed_at": "2024-07-29T18:33:26.575674Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:26.576167Z", "completed_at": "2024-07-29T18:33:26.576187Z"}], "thread_id": "Thread-3", "execution_time": 0.9046189785003662, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__ad_group_report", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"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 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 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 from fields\n)\n\nselect * \nfrom final", "relation_name": "\"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"stg_apple_search_ads__ad_group_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:25.799834Z", "completed_at": "2024-07-29T18:33:26.628430Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:26.629026Z", "completed_at": "2024-07-29T18:33:26.629033Z"}], "thread_id": "Thread-4", "execution_time": 0.9244520664215088, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__campaign_history", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"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", "relation_name": "\"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"stg_apple_search_ads__campaign_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:25.786575Z", "completed_at": "2024-07-29T18:33:26.629314Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:26.629914Z", "completed_at": "2024-07-29T18:33:26.629920Z"}], "thread_id": "Thread-2", "execution_time": 0.9372150897979736, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__ad_history", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"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", "relation_name": "\"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"stg_apple_search_ads__ad_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:25.793120Z", "completed_at": "2024-07-29T18:33:26.628722Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:26.629592Z", "completed_at": "2024-07-29T18:33:26.629596Z"}], "thread_id": "Thread-1", "execution_time": 0.936582088470459, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__ad_report", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"stg_apple_search_ads__ad_report_tmp\"\n),\n\nfields as (\n\n select\n \n cast(null as integer) as \n \n ad_group_id\n \n , \n cast(null as integer) as \n \n ad_id\n \n , \n cast(null as integer) as \n \n campaign_id\n \n , \n cast(null as date) as \n \n date\n \n , \n cast(null as integer) as \n \n impressions\n \n , \n cast(null as numeric(28,6)) as \n \n local_spend_amount\n \n , \n cast(null as TEXT) as \n \n local_spend_currency\n \n , \n cast(null as integer) as \n \n new_downloads\n \n , \n cast(null as integer) as \n \n redownloads\n \n , \n cast(null as integer) 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 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 from fields\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"stg_apple_search_ads__ad_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:26.657117Z", "completed_at": "2024-07-29T18:33:27.487403Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:27.487889Z", "completed_at": "2024-07-29T18:33:27.487907Z"}], "thread_id": "Thread-3", "execution_time": 0.9271330833435059, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__campaign_report", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"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 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 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 from fields\n)\n\nselect * \nfrom final", "relation_name": "\"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"stg_apple_search_ads__campaign_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:26.729705Z", "completed_at": "2024-07-29T18:33:27.585019Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:27.586102Z", "completed_at": "2024-07-29T18:33:27.586108Z"}], "thread_id": "Thread-1", "execution_time": 0.9568257331848145, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__organization", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"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", "relation_name": "\"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"stg_apple_search_ads__organization\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:26.712318Z", "completed_at": "2024-07-29T18:33:27.586406Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:27.594421Z", "completed_at": "2024-07-29T18:33:27.594425Z"}], "thread_id": "Thread-4", "execution_time": 0.9695148468017578, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__keyword_history", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"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", "relation_name": "\"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"stg_apple_search_ads__keyword_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:26.724228Z", "completed_at": "2024-07-29T18:33:27.585770Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:27.594085Z", "completed_at": "2024-07-29T18:33:27.594091Z"}], "thread_id": "Thread-2", "execution_time": 0.9586920738220215, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__keyword_report", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"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 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 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 from fields\n)\n\nselect * \nfrom final", "relation_name": "\"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"stg_apple_search_ads__keyword_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:27.586737Z", "completed_at": "2024-07-29T18:33:28.420316Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:28.421148Z", "completed_at": "2024-07-29T18:33:28.421173Z"}], "thread_id": "Thread-3", "execution_time": 0.9229061603546143, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__search_term_report", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"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 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 impressions,\n taps,\n new_downloads,\n redownloads\n\n \n\n\n\n\n from fields\n)\n\nselect * \nfrom final", "relation_name": "\"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"stg_apple_search_ads__search_term_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:27.694807Z", "completed_at": "2024-07-29T18:33:28.553230Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:28.553516Z", "completed_at": "2024-07-29T18:33:28.553523Z"}], "thread_id": "Thread-4", "execution_time": 0.9493148326873779, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.facebook_ads_source.stg_facebook_ads__ad_history", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_docs_facebook_ads_source\".\"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\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 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", "relation_name": "\"postgres\".\"ad_reporting_docs_facebook_ads_source\".\"stg_facebook_ads__ad_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:27.702450Z", "completed_at": "2024-07-29T18:33:28.554164Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:28.554660Z", "completed_at": "2024-07-29T18:33:28.554664Z"}], "thread_id": "Thread-2", "execution_time": 1.0139079093933105, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.facebook_ads_source.stg_facebook_ads__ad_set_history", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_docs_facebook_ads_source\".\"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\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 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", "relation_name": "\"postgres\".\"ad_reporting_docs_facebook_ads_source\".\"stg_facebook_ads__ad_set_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:27.686192Z", "completed_at": "2024-07-29T18:33:28.553899Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:28.554405Z", "completed_at": "2024-07-29T18:33:28.554409Z"}], "thread_id": "Thread-1", "execution_time": 1.0153417587280273, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.facebook_ads_source.stg_facebook_ads__account_history", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_docs_facebook_ads_source\".\"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", "relation_name": "\"postgres\".\"ad_reporting_docs_facebook_ads_source\".\"stg_facebook_ads__account_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:28.510910Z", "completed_at": "2024-07-29T18:33:29.426739Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:29.427150Z", "completed_at": "2024-07-29T18:33:29.427167Z"}], "thread_id": "Thread-3", "execution_time": 1.0096020698547363, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.facebook_ads_source.stg_facebook_ads__basic_ad", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_docs_facebook_ads_source\".\"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", "relation_name": "\"postgres\".\"ad_reporting_docs_facebook_ads_source\".\"stg_facebook_ads__basic_ad\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:28.635664Z", "completed_at": "2024-07-29T18:33:29.520209Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:29.521567Z", "completed_at": "2024-07-29T18:33:29.521576Z"}], "thread_id": "Thread-4", "execution_time": 0.9730041027069092, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.facebook_ads_source.stg_facebook_ads__campaign_history", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_docs_facebook_ads_source\".\"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", "relation_name": "\"postgres\".\"ad_reporting_docs_facebook_ads_source\".\"stg_facebook_ads__campaign_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:28.706275Z", "completed_at": "2024-07-29T18:33:29.552094Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:29.552642Z", "completed_at": "2024-07-29T18:33:29.552646Z"}], "thread_id": "Thread-1", "execution_time": 0.9304208755493164, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads_source.stg_google_ads__account_history", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_docs_google_ads_source\".\"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", "relation_name": "\"postgres\".\"ad_reporting_docs_google_ads_source\".\"stg_google_ads__account_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:28.701318Z", "completed_at": "2024-07-29T18:33:29.551809Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:29.552357Z", "completed_at": "2024-07-29T18:33:29.552363Z"}], "thread_id": "Thread-2", "execution_time": 0.9312303066253662, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.facebook_ads_source.stg_facebook_ads__creative_history", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_docs_facebook_ads_source\".\"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", "relation_name": "\"postgres\".\"ad_reporting_docs_facebook_ads_source\".\"stg_facebook_ads__creative_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:29.522464Z", "completed_at": "2024-07-29T18:33:30.388226Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:30.388605Z", "completed_at": "2024-07-29T18:33:30.388614Z"}], "thread_id": "Thread-3", "execution_time": 0.9498260021209717, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads_source.stg_google_ads__account_stats", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_docs_google_ads_source\".\"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", "relation_name": "\"postgres\".\"ad_reporting_docs_google_ads_source\".\"stg_google_ads__account_stats\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:29.609570Z", "completed_at": "2024-07-29T18:33:30.418257Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:30.418599Z", "completed_at": "2024-07-29T18:33:30.418605Z"}], "thread_id": "Thread-4", "execution_time": 0.8917200565338135, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads_source.stg_google_ads__ad_group_criterion_history", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_docs_google_ads_source\".\"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", "relation_name": "\"postgres\".\"ad_reporting_docs_google_ads_source\".\"stg_google_ads__ad_group_criterion_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:29.641279Z", "completed_at": "2024-07-29T18:33:30.467960Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:30.468275Z", "completed_at": "2024-07-29T18:33:30.468280Z"}], "thread_id": "Thread-2", "execution_time": 0.9245271682739258, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads_source.stg_google_ads__ad_group_stats", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_docs_google_ads_source\".\"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", "relation_name": "\"postgres\".\"ad_reporting_docs_google_ads_source\".\"stg_google_ads__ad_group_stats\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:29.633934Z", "completed_at": "2024-07-29T18:33:30.467358Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:30.467671Z", "completed_at": "2024-07-29T18:33:30.467677Z"}], "thread_id": "Thread-1", "execution_time": 0.9254710674285889, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads_source.stg_google_ads__ad_group_history", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_docs_google_ads_source\".\"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", "relation_name": "\"postgres\".\"ad_reporting_docs_google_ads_source\".\"stg_google_ads__ad_group_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:30.501806Z", "completed_at": "2024-07-29T18:33:31.391819Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:31.392330Z", "completed_at": "2024-07-29T18:33:31.392337Z"}], "thread_id": "Thread-4", "execution_time": 0.9781618118286133, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads_source.stg_google_ads__ad_stats", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_docs_google_ads_source\".\"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 cast(null as integer) as \n \n conversions\n \n , \n cast(null as integer) as \n \n conversions_value\n \n , \n cast(null as integer) 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", "relation_name": "\"postgres\".\"ad_reporting_docs_google_ads_source\".\"stg_google_ads__ad_stats\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:30.472175Z", "completed_at": "2024-07-29T18:33:31.392082Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:31.392591Z", "completed_at": "2024-07-29T18:33:31.392594Z"}], "thread_id": "Thread-3", "execution_time": 1.0087471008300781, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads_source.stg_google_ads__ad_history", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_docs_google_ads_source\".\"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", "relation_name": "\"postgres\".\"ad_reporting_docs_google_ads_source\".\"stg_google_ads__ad_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:30.560798Z", "completed_at": "2024-07-29T18:33:31.448518Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:31.448997Z", "completed_at": "2024-07-29T18:33:31.449000Z"}], "thread_id": "Thread-2", "execution_time": 0.9691371917724609, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads_source.stg_google_ads__campaign_stats", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_docs_google_ads_source\".\"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", "relation_name": "\"postgres\".\"ad_reporting_docs_google_ads_source\".\"stg_google_ads__campaign_stats\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:30.567946Z", "completed_at": "2024-07-29T18:33:31.448273Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:31.448750Z", "completed_at": "2024-07-29T18:33:31.448755Z"}], "thread_id": "Thread-1", "execution_time": 0.9692280292510986, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads_source.stg_google_ads__campaign_history", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_docs_google_ads_source\".\"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", "relation_name": "\"postgres\".\"ad_reporting_docs_google_ads_source\".\"stg_google_ads__campaign_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:31.489378Z", "completed_at": "2024-07-29T18:33:32.421808Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:32.425051Z", "completed_at": "2024-07-29T18:33:32.425059Z"}], "thread_id": "Thread-3", "execution_time": 1.0225458145141602, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.linkedin_source.stg_linkedin_ads__account_history", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_linkedin_ads_source\".\"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 source_relation, id order by last_modified_time desc) = 1 as is_latest_version\n\n from macro\n\n)\n\nselect *\nfrom fields", "relation_name": "\"postgres\".\"ad_reporting_docs_linkedin_ads_source\".\"stg_linkedin_ads__account_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:31.531546Z", "completed_at": "2024-07-29T18:33:32.425800Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:32.426515Z", "completed_at": "2024-07-29T18:33:32.426518Z"}], "thread_id": "Thread-2", "execution_time": 0.9849298000335693, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_docs_linkedin_ads_source\".\"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", "relation_name": "\"postgres\".\"ad_reporting_docs_linkedin_ads_source\".\"stg_linkedin_ads__ad_analytics_by_campaign\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:31.537837Z", "completed_at": "2024-07-29T18:33:32.425552Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:32.426054Z", "completed_at": "2024-07-29T18:33:32.426058Z"}], "thread_id": "Thread-1", "execution_time": 0.9859578609466553, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_creative", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_linkedin_ads_source\".\"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 cast(null as numeric(28,6)) as \n \n conversion_value_in_local_currency\n \n , \n cast(null as TEXT) as \n \n external_website_conversions\n \n , \n cast(null as TEXT) 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", "relation_name": "\"postgres\".\"ad_reporting_docs_linkedin_ads_source\".\"stg_linkedin_ads__ad_analytics_by_creative\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:31.482073Z", "completed_at": "2024-07-29T18:33:32.426286Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:32.426781Z", "completed_at": "2024-07-29T18:33:32.426785Z"}], "thread_id": "Thread-4", "execution_time": 1.0369410514831543, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads_source.stg_google_ads__keyword_stats", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_docs_google_ads_source\".\"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", "relation_name": "\"postgres\".\"ad_reporting_docs_google_ads_source\".\"stg_google_ads__keyword_stats\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:32.506430Z", "completed_at": "2024-07-29T18:33:33.316371Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:33.316854Z", "completed_at": "2024-07-29T18:33:33.316873Z"}], "thread_id": "Thread-3", "execution_time": 0.9244730472564697, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.linkedin_source.stg_linkedin_ads__campaign_group_history", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_linkedin_ads_source\".\"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 source_relation, id order by last_modified_time desc) = 1 as is_latest_version\n\n from macro\n\n)\n\nselect *\nfrom fields", "relation_name": "\"postgres\".\"ad_reporting_docs_linkedin_ads_source\".\"stg_linkedin_ads__campaign_group_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:32.586080Z", "completed_at": "2024-07-29T18:33:33.449154Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:33.456131Z", "completed_at": "2024-07-29T18:33:33.456136Z"}], "thread_id": "Thread-4", "execution_time": 1.0195729732513428, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__account_daily_report", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"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\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 clicks, \n impressions,\n spend\n \n \n\n\n\n\n from fields\n)\n\nselect * \nfrom final", "relation_name": "\"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"stg_microsoft_ads__account_daily_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:32.529255Z", "completed_at": "2024-07-29T18:33:33.448675Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:33.449420Z", "completed_at": "2024-07-29T18:33:33.449427Z"}], "thread_id": "Thread-1", "execution_time": 1.0205109119415283, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.linkedin_source.stg_linkedin_ads__campaign_history", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_linkedin_ads_source\".\"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 source_relation, id order by last_modified_time desc) = 1 as is_latest_version\n\n from macro\n\n)\n\nselect *\nfrom fields", "relation_name": "\"postgres\".\"ad_reporting_docs_linkedin_ads_source\".\"stg_linkedin_ads__campaign_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:32.520175Z", "completed_at": "2024-07-29T18:33:33.455881Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:33.456653Z", "completed_at": "2024-07-29T18:33:33.456657Z"}], "thread_id": "Thread-2", "execution_time": 1.039651870727539, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.linkedin_source.stg_linkedin_ads__creative_history", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_linkedin_ads_source\".\"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 TEXT) 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 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 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 \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", "relation_name": "\"postgres\".\"ad_reporting_docs_linkedin_ads_source\".\"stg_linkedin_ads__creative_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:33.449725Z", "completed_at": "2024-07-29T18:33:34.253665Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:34.254092Z", "completed_at": "2024-07-29T18:33:34.254109Z"}], "thread_id": "Thread-3", "execution_time": 0.8997771739959717, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__ad_daily_report", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"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\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 clicks,\n impressions,\n spend\n\n \n\n\n\n\n from fields\n)\n\nselect * \nfrom final", "relation_name": "\"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"stg_microsoft_ads__ad_daily_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:33.543122Z", "completed_at": "2024-07-29T18:33:34.391508Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:34.392175Z", "completed_at": "2024-07-29T18:33:34.392181Z"}], "thread_id": "Thread-4", "execution_time": 0.9367630481719971, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__account_history", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"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", "relation_name": "\"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"stg_microsoft_ads__account_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:33.559733Z", "completed_at": "2024-07-29T18:33:34.391787Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:34.392495Z", "completed_at": "2024-07-29T18:33:34.392507Z"}], "thread_id": "Thread-2", "execution_time": 0.919813871383667, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__ad_group_history", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"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", "relation_name": "\"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"stg_microsoft_ads__ad_group_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:33.550034Z", "completed_at": "2024-07-29T18:33:34.390843Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:34.391193Z", "completed_at": "2024-07-29T18:33:34.391202Z"}], "thread_id": "Thread-1", "execution_time": 0.9379019737243652, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__ad_group_daily_report", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"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\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 clicks,\n impressions,\n spend\n\n \n\n\n\n\n from fields\n)\n\nselect * \nfrom final", "relation_name": "\"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"stg_microsoft_ads__ad_group_daily_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:34.352126Z", "completed_at": "2024-07-29T18:33:35.199351Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:35.199843Z", "completed_at": "2024-07-29T18:33:35.199863Z"}], "thread_id": "Thread-3", "execution_time": 0.9333698749542236, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__ad_history", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"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", "relation_name": "\"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"stg_microsoft_ads__ad_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:34.490271Z", "completed_at": "2024-07-29T18:33:35.328545Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:35.329092Z", "completed_at": "2024-07-29T18:33:35.329099Z"}], "thread_id": "Thread-2", "execution_time": 0.9268479347229004, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__keyword_history", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"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", "relation_name": "\"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"stg_microsoft_ads__keyword_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:34.484287Z", "completed_at": "2024-07-29T18:33:35.329340Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:35.329888Z", "completed_at": "2024-07-29T18:33:35.329892Z"}], "thread_id": "Thread-4", "execution_time": 0.9400091171264648, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__campaign_daily_report", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"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 cast(null as TEXT) as \n \n budget_name\n \n , \n cast(null as TEXT) as \n \n budget_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 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 clicks,\n impressions,\n spend\n\n \n\n\n\n\n from fields\n)\n\nselect * \nfrom final", "relation_name": "\"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"stg_microsoft_ads__campaign_daily_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:34.496524Z", "completed_at": "2024-07-29T18:33:35.328839Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:35.329585Z", "completed_at": "2024-07-29T18:33:35.329588Z"}], "thread_id": "Thread-1", "execution_time": 0.9399261474609375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__campaign_history", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"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", "relation_name": "\"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"stg_microsoft_ads__campaign_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:35.288642Z", "completed_at": "2024-07-29T18:33:36.142680Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:36.143113Z", "completed_at": "2024-07-29T18:33:36.143131Z"}], "thread_id": "Thread-3", "execution_time": 0.9356720447540283, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__keyword_daily_report", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"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 \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 clicks,\n impressions,\n spend\n\n \n\n\n\n\n from fields\n)\n\nselect * \nfrom final", "relation_name": "\"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"stg_microsoft_ads__keyword_daily_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:35.411496Z", "completed_at": "2024-07-29T18:33:36.213218Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:36.213612Z", "completed_at": "2024-07-29T18:33:36.213620Z"}], "thread_id": "Thread-2", "execution_time": 0.8827090263366699, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__search_daily_report", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"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\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 clicks,\n impressions,\n spend\n\n \n\n\n\n\n from fields\n)\n\nselect * \nfrom final", "relation_name": "\"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"stg_microsoft_ads__search_daily_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:35.425721Z", "completed_at": "2024-07-29T18:33:36.243164Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:36.243466Z", "completed_at": "2024-07-29T18:33:36.243472Z"}], "thread_id": "Thread-4", "execution_time": 0.9013559818267822, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest_source.stg_pinterest_ads__ad_group_history", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_pinterest_source\".\"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 id 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 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", "relation_name": "\"postgres\".\"ad_reporting_docs_pinterest_source\".\"stg_pinterest_ads__ad_group_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:35.432399Z", "completed_at": "2024-07-29T18:33:36.279989Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:36.280296Z", "completed_at": "2024-07-29T18:33:36.280301Z"}], "thread_id": "Thread-1", "execution_time": 0.9634449481964111, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest_source.stg_pinterest_ads__ad_group_report", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_docs_pinterest_source\".\"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 cast(null as integer) 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 cast(null as integer) 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 \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 ad_group_id,\n ad_group_name,\n ad_group_status,\n campaign_id,\n 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 spend_in_micro_dollar / 1000000.0 as spend\n\n \n\n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"ad_reporting_docs_pinterest_source\".\"stg_pinterest_ads__ad_group_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:36.224713Z", "completed_at": "2024-07-29T18:33:37.060467Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:37.060948Z", "completed_at": "2024-07-29T18:33:37.060966Z"}], "thread_id": "Thread-3", "execution_time": 0.9164748191833496, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest_source.stg_pinterest_ads__advertiser_history", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_docs_pinterest_source\".\"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 id 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", "relation_name": "\"postgres\".\"ad_reporting_docs_pinterest_source\".\"stg_pinterest_ads__advertiser_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:36.294690Z", "completed_at": "2024-07-29T18:33:37.109366Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:37.109746Z", "completed_at": "2024-07-29T18:33:37.109754Z"}], "thread_id": "Thread-2", "execution_time": 0.8987269401550293, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest_source.stg_pinterest_ads__advertiser_report", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_docs_pinterest_source\".\"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 cast(null as integer) 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 cast(null as integer) 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 \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 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 spend_in_micro_dollar / 1000000.0 as spend\n\n \n\n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"ad_reporting_docs_pinterest_source\".\"stg_pinterest_ads__advertiser_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:36.327098Z", "completed_at": "2024-07-29T18:33:37.201326Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:37.202108Z", "completed_at": "2024-07-29T18:33:37.202114Z"}], "thread_id": "Thread-4", "execution_time": 0.9572339057922363, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest_source.stg_pinterest_ads__campaign_history", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_pinterest_source\".\"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 id as campaign_id,\n name as campaign_name,\n 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", "relation_name": "\"postgres\".\"ad_reporting_docs_pinterest_source\".\"stg_pinterest_ads__campaign_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:36.389365Z", "completed_at": "2024-07-29T18:33:37.201838Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:37.202606Z", "completed_at": "2024-07-29T18:33:37.202610Z"}], "thread_id": "Thread-1", "execution_time": 0.8954482078552246, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest_source.stg_pinterest_ads__keyword_history", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_docs_pinterest_source\".\"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 id as keyword_id,\n value as keyword_value,\n _fivetran_id,\n _fivetran_synced,\n ad_group_id,\n advertiser_id,\n archived,\n bid,\n 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", "relation_name": "\"postgres\".\"ad_reporting_docs_pinterest_source\".\"stg_pinterest_ads__keyword_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:37.142570Z", "completed_at": "2024-07-29T18:33:37.961925Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:37.962428Z", "completed_at": "2024-07-29T18:33:37.962447Z"}], "thread_id": "Thread-3", "execution_time": 0.907660722732544, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest_source.stg_pinterest_ads__campaign_report", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_docs_pinterest_source\".\"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 cast(null as integer) 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 cast(null as integer) 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 \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 campaign_id,\n campaign_name,\n campaign_status,\n 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 spend_in_micro_dollar / 1000000.0 as spend\n\n \n\n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"ad_reporting_docs_pinterest_source\".\"stg_pinterest_ads__campaign_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:37.194115Z", "completed_at": "2024-07-29T18:33:37.996394Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:37.996735Z", "completed_at": "2024-07-29T18:33:37.996742Z"}], "thread_id": "Thread-2", "execution_time": 0.8820559978485107, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest_source.stg_pinterest_ads__keyword_report", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_docs_pinterest_source\".\"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 cast(null as integer) 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 cast(null as integer) 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 \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 keyword_id,\n pin_promotion_id,\n ad_group_id,\n ad_group_name,\n ad_group_status,\n campaign_id,\n 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 spend_in_micro_dollar / 1000000.0 as spend\n\n \n\n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"ad_reporting_docs_pinterest_source\".\"stg_pinterest_ads__keyword_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:37.297208Z", "completed_at": "2024-07-29T18:33:38.098362Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:38.098634Z", "completed_at": "2024-07-29T18:33:38.098640Z"}], "thread_id": "Thread-1", "execution_time": 0.8928530216217041, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.reddit_ads_source.stg_reddit_ads__account_report", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_docs_reddit_ads_source\".\"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 clicks,\n date as date_day,\n impressions,\n region,\n (spend/1000000) as spend\n \n \n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"ad_reporting_docs_reddit_ads_source\".\"stg_reddit_ads__account_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:37.287328Z", "completed_at": "2024-07-29T18:33:38.126407Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:38.126654Z", "completed_at": "2024-07-29T18:33:38.126659Z"}], "thread_id": "Thread-4", "execution_time": 0.9290549755096436, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest_source.stg_pinterest_ads__pin_promotion_history", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_pinterest_source\".\"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 id as pin_promotion_id,\n ad_account_id as advertiser_id,\n 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 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", "relation_name": "\"postgres\".\"ad_reporting_docs_pinterest_source\".\"stg_pinterest_ads__pin_promotion_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:38.051597Z", "completed_at": "2024-07-29T18:33:38.917088Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:38.917560Z", "completed_at": "2024-07-29T18:33:38.917577Z"}], "thread_id": "Thread-3", "execution_time": 0.9524381160736084, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest_source.stg_pinterest_ads__pin_promotion_report", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_pinterest_source\".\"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 \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 pin_promotion_id,\n ad_group_id,\n campaign_id,\n 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 spend_in_micro_dollar / 1000000.0 as spend\n\n \n\n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"ad_reporting_docs_pinterest_source\".\"stg_pinterest_ads__pin_promotion_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:38.077213Z", "completed_at": "2024-07-29T18:33:38.928097Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:38.928430Z", "completed_at": "2024-07-29T18:33:38.928436Z"}], "thread_id": "Thread-2", "execution_time": 0.9533860683441162, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.reddit_ads_source.stg_reddit_ads__account", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_docs_reddit_ads_source\".\"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", "relation_name": "\"postgres\".\"ad_reporting_docs_reddit_ads_source\".\"stg_reddit_ads__account\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:38.180641Z", "completed_at": "2024-07-29T18:33:39.031415Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:39.032009Z", "completed_at": "2024-07-29T18:33:39.032016Z"}], "thread_id": "Thread-1", "execution_time": 0.9418230056762695, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.reddit_ads_source.stg_reddit_ads__ad_group", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_docs_reddit_ads_source\".\"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", "relation_name": "\"postgres\".\"ad_reporting_docs_reddit_ads_source\".\"stg_reddit_ads__ad_group\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:38.216189Z", "completed_at": "2024-07-29T18:33:39.063386Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:39.063660Z", "completed_at": "2024-07-29T18:33:39.063666Z"}], "thread_id": "Thread-4", "execution_time": 0.9302279949188232, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.reddit_ads_source.stg_reddit_ads__ad_group_report", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_docs_reddit_ads_source\".\"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 clicks,\n date as date_day,\n impressions,\n region,\n (spend/1000000) as spend\n \n \n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"ad_reporting_docs_reddit_ads_source\".\"stg_reddit_ads__ad_group_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:39.004966Z", "completed_at": "2024-07-29T18:33:39.884464Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:39.885122Z", "completed_at": "2024-07-29T18:33:39.885126Z"}], "thread_id": "Thread-3", "execution_time": 0.9616541862487793, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.reddit_ads_source.stg_reddit_ads__ad_report", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_docs_reddit_ads_source\".\"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 clicks,\n date as date_day,\n impressions,\n region,\n (spend/1000000) as spend\n \n \n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"ad_reporting_docs_reddit_ads_source\".\"stg_reddit_ads__ad_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:39.032304Z", "completed_at": "2024-07-29T18:33:39.884130Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:39.884792Z", "completed_at": "2024-07-29T18:33:39.884801Z"}], "thread_id": "Thread-2", "execution_time": 0.9521510601043701, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.reddit_ads_source.stg_reddit_ads__ad", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_docs_reddit_ads_source\".\"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", "relation_name": "\"postgres\".\"ad_reporting_docs_reddit_ads_source\".\"stg_reddit_ads__ad\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:39.123469Z", "completed_at": "2024-07-29T18:33:39.937752Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:39.938080Z", "completed_at": "2024-07-29T18:33:39.938086Z"}], "thread_id": "Thread-1", "execution_time": 0.8976597785949707, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.reddit_ads_source.stg_reddit_ads__campaign_report", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_docs_reddit_ads_source\".\"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 clicks,\n date as date_day,\n impressions,\n region,\n (spend/1000000) as spend\n \n \n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"ad_reporting_docs_reddit_ads_source\".\"stg_reddit_ads__campaign_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:39.147411Z", "completed_at": "2024-07-29T18:33:39.986116Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:39.993216Z", "completed_at": "2024-07-29T18:33:39.993223Z"}], "thread_id": "Thread-4", "execution_time": 0.9351820945739746, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.reddit_ads_source.stg_reddit_ads__campaign", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_docs_reddit_ads_source\".\"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", "relation_name": "\"postgres\".\"ad_reporting_docs_reddit_ads_source\".\"stg_reddit_ads__campaign\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:39.967938Z", "completed_at": "2024-07-29T18:33:40.819429Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:40.820101Z", "completed_at": "2024-07-29T18:33:40.820106Z"}], "thread_id": "Thread-3", "execution_time": 0.9335508346557617, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_account_history", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"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", "relation_name": "\"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"stg_snapchat_ads__ad_account_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:39.986393Z", "completed_at": "2024-07-29T18:33:40.819092Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:40.819757Z", "completed_at": "2024-07-29T18:33:40.819766Z"}], "thread_id": "Thread-2", "execution_time": 0.917168140411377, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"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 \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\n \n\n\n\n\n\n from fields\n)\n\nselect * \nfrom final", "relation_name": "\"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"stg_snapchat_ads__ad_hourly_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:40.021812Z", "completed_at": "2024-07-29T18:33:40.872622Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:40.872952Z", "completed_at": "2024-07-29T18:33:40.872958Z"}], "thread_id": "Thread-1", "execution_time": 0.9349420070648193, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_history", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"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", "relation_name": "\"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"stg_snapchat_ads__ad_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:40.083614Z", "completed_at": "2024-07-29T18:33:40.973059Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:40.973332Z", "completed_at": "2024-07-29T18:33:40.973338Z"}], "thread_id": "Thread-4", "execution_time": 0.9763989448547363, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"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", "relation_name": "\"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"stg_snapchat_ads__ad_squad_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:40.914422Z", "completed_at": "2024-07-29T18:33:41.757740Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:41.758541Z", "completed_at": "2024-07-29T18:33:41.758552Z"}], "thread_id": "Thread-2", "execution_time": 0.9325082302093506, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__campaign_history", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"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", "relation_name": "\"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"stg_snapchat_ads__campaign_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:40.903740Z", "completed_at": "2024-07-29T18:33:41.759063Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:41.759448Z", "completed_at": "2024-07-29T18:33:41.759454Z"}], "thread_id": "Thread-3", "execution_time": 0.9452011585235596, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_hourly_report", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"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 \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\n \n\n\n\n\n \n from fields\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"stg_snapchat_ads__ad_squad_hourly_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:40.957739Z", "completed_at": "2024-07-29T18:33:41.781418Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:41.781730Z", "completed_at": "2024-07-29T18:33:41.781735Z"}], "thread_id": "Thread-1", "execution_time": 0.9064679145812988, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__campaign_hourly_report", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"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 \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\n \n\n\n\n\n \n from fields\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"stg_snapchat_ads__campaign_hourly_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:41.061535Z", "completed_at": "2024-07-29T18:33:41.869328Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:41.871969Z", "completed_at": "2024-07-29T18:33:41.871976Z"}], "thread_id": "Thread-4", "execution_time": 0.8948690891265869, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__creative_history", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"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", "relation_name": "\"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"stg_snapchat_ads__creative_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:41.873521Z", "completed_at": "2024-07-29T18:33:42.770998Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:42.771284Z", "completed_at": "2024-07-29T18:33:42.771291Z"}], "thread_id": "Thread-1", "execution_time": 0.9795939922332764, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__ad_group_report_hourly", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_stg_tiktok_ads\".\"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 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 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 impressions, \n clicks, \n spend, \n reach, \n conversion, \n cost_per_conversion, \n conversion_rate, \n likes, \n comments, \n shares, \n profile_visits,\n follows, \n video_play_actions, \n video_watched_2_s, \n video_watched_6_s, \n video_views_p_25, \n video_views_p_50,\n video_views_p_75, \n average_video_play, \n average_video_play_per_user\n\n \n\n\n\n\n\n from fields\n) \n\nselect *\nfrom final", "relation_name": "\"postgres\".\"ad_reporting_docs_stg_tiktok_ads\".\"stg_tiktok_ads__ad_group_report_hourly\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:41.848433Z", "completed_at": "2024-07-29T18:33:42.771889Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:42.772158Z", "completed_at": "2024-07-29T18:33:42.772162Z"}], "thread_id": "Thread-2", "execution_time": 1.0153069496154785, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__creative_url_tag_history", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"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", "relation_name": "\"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"stg_snapchat_ads__creative_url_tag_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:41.864231Z", "completed_at": "2024-07-29T18:33:42.772410Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:42.772717Z", "completed_at": "2024-07-29T18:33:42.772721Z"}], "thread_id": "Thread-3", "execution_time": 1.0009160041809082, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__ad_group_history", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_stg_tiktok_ads\".\"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 TEXT) 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 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 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", "relation_name": "\"postgres\".\"ad_reporting_docs_stg_tiktok_ads\".\"stg_tiktok_ads__ad_group_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:41.957310Z", "completed_at": "2024-07-29T18:33:42.829615Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:42.829879Z", "completed_at": "2024-07-29T18:33:42.829884Z"}], "thread_id": "Thread-4", "execution_time": 0.9536449909210205, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__ad_history", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_stg_tiktok_ads\".\"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", "relation_name": "\"postgres\".\"ad_reporting_docs_stg_tiktok_ads\".\"stg_tiktok_ads__ad_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:42.911419Z", "completed_at": "2024-07-29T18:33:43.740466Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:43.741003Z", "completed_at": "2024-07-29T18:33:43.741006Z"}], "thread_id": "Thread-4", "execution_time": 0.9121983051300049, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__campaign_report_hourly", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_stg_tiktok_ads\".\"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 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 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 impressions,\n clicks,\n spend,\n reach,\n conversion,\n cost_per_conversion,\n conversion_rate,\n likes,\n comments,\n shares,\n profile_visits,\n follows,\n video_play_actions,\n video_watched_2_s,\n video_watched_6_s,\n video_views_p_25,\n video_views_p_50,\n video_views_p_75,\n average_video_play,\n average_video_play_per_user\n\n \n\n\n\n\n \n from fields\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"ad_reporting_docs_stg_tiktok_ads\".\"stg_tiktok_ads__campaign_report_hourly\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:42.853650Z", "completed_at": "2024-07-29T18:33:43.738455Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:43.739326Z", "completed_at": "2024-07-29T18:33:43.739334Z"}], "thread_id": "Thread-1", "execution_time": 0.9725959300994873, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__advertiser", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_stg_tiktok_ads\".\"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", "relation_name": "\"postgres\".\"ad_reporting_docs_stg_tiktok_ads\".\"stg_tiktok_ads__advertiser\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:42.871315Z", "completed_at": "2024-07-29T18:33:43.739762Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:43.740245Z", "completed_at": "2024-07-29T18:33:43.740249Z"}], "thread_id": "Thread-3", "execution_time": 0.9559199810028076, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__campaign_history", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_stg_tiktok_ads\".\"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", "relation_name": "\"postgres\".\"ad_reporting_docs_stg_tiktok_ads\".\"stg_tiktok_ads__campaign_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:42.864276Z", "completed_at": "2024-07-29T18:33:43.740009Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:43.740731Z", "completed_at": "2024-07-29T18:33:43.740735Z"}], "thread_id": "Thread-2", "execution_time": 0.9641120433807373, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_stg_tiktok_ads\".\"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 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 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 impressions, \n clicks, \n spend, \n reach, \n conversion, \n cost_per_conversion, \n conversion_rate, \n likes, \n comments, \n shares, \n profile_visits,\n follows, \n video_play_actions, \n video_watched_2_s, \n video_watched_6_s, \n video_views_p_25, \n video_views_p_50,\n video_views_p_75, \n average_video_play, \n average_video_play_per_user\n\n \n\n\n\n\n from fields\n)\n\nselect * \nfrom final", "relation_name": "\"postgres\".\"ad_reporting_docs_stg_tiktok_ads\".\"stg_tiktok_ads__ad_report_hourly\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:43.827822Z", "completed_at": "2024-07-29T18:33:44.673464Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:44.673899Z", "completed_at": "2024-07-29T18:33:44.673918Z"}], "thread_id": "Thread-4", "execution_time": 0.932013988494873, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.twitter_ads_source.stg_twitter_ads__account_history", "compiled": true, "compiled_code": "\n\nwith source as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"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", "relation_name": "\"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"stg_twitter_ads__account_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:43.901047Z", "completed_at": "2024-07-29T18:33:44.811435Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:44.811773Z", "completed_at": "2024-07-29T18:33:44.811781Z"}], "thread_id": "Thread-2", "execution_time": 1.057098150253296, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.twitter_ads_source.stg_twitter_ads__line_item_history", "compiled": true, "compiled_code": "\n\nwith source as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"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", "relation_name": "\"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"stg_twitter_ads__line_item_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:43.838349Z", "completed_at": "2024-07-29T18:33:44.812119Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:44.812431Z", "completed_at": "2024-07-29T18:33:44.812435Z"}], "thread_id": "Thread-1", "execution_time": 1.0834178924560547, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.twitter_ads_source.stg_twitter_ads__campaign_history", "compiled": true, "compiled_code": "\n\nwith source as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"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", "relation_name": "\"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"stg_twitter_ads__campaign_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:43.844573Z", "completed_at": "2024-07-29T18:33:44.929743Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:44.930259Z", "completed_at": "2024-07-29T18:33:44.930265Z"}], "thread_id": "Thread-3", "execution_time": 1.1757187843322754, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.twitter_ads_source.stg_twitter_ads__campaign_report", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"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 \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\n\n\n \n from fields\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"stg_twitter_ads__campaign_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:44.759069Z", "completed_at": "2024-07-29T18:33:45.694098Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:45.694537Z", "completed_at": "2024-07-29T18:33:45.694555Z"}], "thread_id": "Thread-4", "execution_time": 1.01503324508667, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.twitter_ads_source.stg_twitter_ads__line_item_report", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"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 \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\n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"stg_twitter_ads__line_item_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:44.922552Z", "completed_at": "2024-07-29T18:33:45.754945Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:45.755671Z", "completed_at": "2024-07-29T18:33:45.755682Z"}], "thread_id": "Thread-1", "execution_time": 0.9154250621795654, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report", "compiled": true, "compiled_code": "\n\nwith source as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"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\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\n\n\n\n \n from renamed\n\n)\n\nselect * from spend_calc", "relation_name": "\"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"stg_twitter_ads__promoted_tweet_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:44.896321Z", "completed_at": "2024-07-29T18:33:45.755321Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:45.756033Z", "completed_at": "2024-07-29T18:33:45.756038Z"}], "thread_id": "Thread-2", "execution_time": 0.9425437450408936, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_history", "compiled": true, "compiled_code": "\n\nwith source as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"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", "relation_name": "\"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"stg_twitter_ads__promoted_tweet_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:45.840662Z", "completed_at": "2024-07-29T18:33:45.860980Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:45.861533Z", "completed_at": "2024-07-29T18:33:45.861541Z"}], "thread_id": "Thread-1", "execution_time": 0.022397994995117188, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_amazon_ads_source\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:45.853363Z", "completed_at": "2024-07-29T18:33:45.861264Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:45.862040Z", "completed_at": "2024-07-29T18:33:45.862044Z"}], "thread_id": "Thread-2", "execution_time": 0.022444725036621094, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.amazon_ads_source.not_null_stg_amazon_ads__ad_group_level_report_ad_group_id.ee4ef641c3", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom \"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"stg_amazon_ads__ad_group_level_report\"\nwhere ad_group_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:45.864032Z", "completed_at": "2024-07-29T18:33:45.872826Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:45.873155Z", "completed_at": "2024-07-29T18:33:45.873163Z"}], "thread_id": "Thread-1", "execution_time": 0.010221004486083984, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_amazon_ads_source\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:45.868970Z", "completed_at": "2024-07-29T18:33:45.873617Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:45.874158Z", "completed_at": "2024-07-29T18:33:45.874162Z"}], "thread_id": "Thread-2", "execution_time": 0.010909318923950195, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.amazon_ads_source.not_null_stg_amazon_ads__campaign_history_campaign_id.49e395897c", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom \"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"stg_amazon_ads__campaign_history\"\nwhere campaign_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:45.875567Z", "completed_at": "2024-07-29T18:33:45.883834Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:45.884257Z", "completed_at": "2024-07-29T18:33:45.884262Z"}], "thread_id": "Thread-1", "execution_time": 0.009750843048095703, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_amazon_ads_source\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:45.880633Z", "completed_at": "2024-07-29T18:33:45.884053Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:45.884642Z", "completed_at": "2024-07-29T18:33:45.884646Z"}], "thread_id": "Thread-2", "execution_time": 0.009373903274536133, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.amazon_ads_source.not_null_stg_amazon_ads__ad_group_history_ad_group_id.6b524b990b", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom \"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"stg_amazon_ads__ad_group_history\"\nwhere ad_group_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:45.889919Z", "completed_at": "2024-07-29T18:33:45.893000Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:45.893417Z", "completed_at": "2024-07-29T18:33:45.893422Z"}], "thread_id": "Thread-2", "execution_time": 0.007679939270019531, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.amazon_ads_source.not_null_stg_amazon_ads__advertised_product_report_ad_id.307c6bc8d4", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom \"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"stg_amazon_ads__advertised_product_report\"\nwhere ad_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:45.886444Z", "completed_at": "2024-07-29T18:33:45.893215Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:45.893779Z", "completed_at": "2024-07-29T18:33:45.893782Z"}], "thread_id": "Thread-1", "execution_time": 0.008316993713378906, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_amazon_ads_source\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:45.014903Z", "completed_at": "2024-07-29T18:33:45.817899Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:45.818190Z", "completed_at": "2024-07-29T18:33:45.818198Z"}], "thread_id": "Thread-3", "execution_time": 0.8892889022827148, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.twitter_ads_source.stg_twitter_ads__tweet", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"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", "relation_name": "\"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"stg_twitter_ads__tweet\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:45.895402Z", "completed_at": "2024-07-29T18:33:45.903500Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:45.904272Z", "completed_at": "2024-07-29T18:33:45.904276Z"}], "thread_id": "Thread-2", "execution_time": 0.009747028350830078, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_amazon_ads_source\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:45.899862Z", "completed_at": "2024-07-29T18:33:45.903976Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:45.904835Z", "completed_at": "2024-07-29T18:33:45.904839Z"}], "thread_id": "Thread-1", "execution_time": 0.010154962539672852, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.amazon_ads_source.not_null_stg_amazon_ads__keyword_history_keyword_id.f21f6add6e", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect keyword_id\nfrom \"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"stg_amazon_ads__keyword_history\"\nwhere keyword_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:45.905516Z", "completed_at": "2024-07-29T18:33:45.913242Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:45.916336Z", "completed_at": "2024-07-29T18:33:45.916342Z"}], "thread_id": "Thread-3", "execution_time": 0.012661933898925781, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_amazon_ads_source\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:45.909661Z", "completed_at": "2024-07-29T18:33:45.917319Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:45.917920Z", "completed_at": "2024-07-29T18:33:45.917924Z"}], "thread_id": "Thread-2", "execution_time": 0.009226799011230469, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_amazon_ads_source\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:45.913453Z", "completed_at": "2024-07-29T18:33:45.917720Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:45.921069Z", "completed_at": "2024-07-29T18:33:45.921074Z"}], "thread_id": "Thread-1", "execution_time": 0.012108087539672852, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.amazon_ads_source.not_null_stg_amazon_ads__campaign_level_report_campaign_id.1efec68194", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom \"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"stg_amazon_ads__campaign_level_report\"\nwhere campaign_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:45.918264Z", "completed_at": "2024-07-29T18:33:45.922436Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:45.923043Z", "completed_at": "2024-07-29T18:33:45.923046Z"}], "thread_id": "Thread-3", "execution_time": 0.0060269832611083984, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.amazon_ads_source.not_null_stg_amazon_ads__product_ad_history_ad_id.8744ab1cd8", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom \"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"stg_amazon_ads__product_ad_history\"\nwhere ad_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:45.923366Z", "completed_at": "2024-07-29T18:33:45.935685Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:45.936128Z", "completed_at": "2024-07-29T18:33:45.936135Z"}], "thread_id": "Thread-2", "execution_time": 0.01420903205871582, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.amazon_ads.int_amazon_ads__portfolio_history", "compiled": true, "compiled_code": "\n\n\n\nwith portfolios as (\n select\n \n *\n from \"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"stg_amazon_ads__portfolio_history\"\n where is_most_recent_record = True\n \n)\n\nselect * \nfrom portfolios", "relation_name": "\"postgres\".\"ad_reporting_docs_amazon_ads\".\"int_amazon_ads__portfolio_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:45.928023Z", "completed_at": "2024-07-29T18:33:45.935928Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:45.936523Z", "completed_at": "2024-07-29T18:33:45.936527Z"}], "thread_id": "Thread-1", "execution_time": 0.014356851577758789, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_amazon_ads_source\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:45.932821Z", "completed_at": "2024-07-29T18:33:45.937099Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:45.937877Z", "completed_at": "2024-07-29T18:33:45.937880Z"}], "thread_id": "Thread-3", "execution_time": 0.005599021911621094, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.amazon_ads_source.not_null_stg_amazon_ads__portfolio_history_portfolio_id.e22bb2ba02", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect portfolio_id\nfrom \"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"stg_amazon_ads__portfolio_history\"\nwhere portfolio_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:45.939061Z", "completed_at": "2024-07-29T18:33:45.954870Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:45.955127Z", "completed_at": "2024-07-29T18:33:45.955133Z"}], "thread_id": "Thread-2", "execution_time": 0.01755213737487793, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.amazon_ads.amazon_ads__account_report", "compiled": true, "compiled_code": "\n\nwith report as (\n select *\n --use campaign report since account report not provided\n from \"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"stg_amazon_ads__campaign_level_report\"\n), \n\naccount_info as (\n select *\n from \"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"stg_amazon_ads__profile\"\n where _fivetran_deleted = False\n),\n\ncampaigns as (\n select *\n from \"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"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\n --use campaign report since portfolio report not provided\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", "relation_name": "\"postgres\".\"ad_reporting_docs_amazon_ads\".\"amazon_ads__account_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:45.946479Z", "completed_at": "2024-07-29T18:33:45.955749Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:45.956508Z", "completed_at": "2024-07-29T18:33:45.956512Z"}], "thread_id": "Thread-1", "execution_time": 0.018353939056396484, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.amazon_ads.amazon_ads__portfolio_report", "compiled": true, "compiled_code": "\n\nwith report as (\n select *\n --use campaign report since portfolio report not provided\n from \"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"stg_amazon_ads__campaign_level_report\"\n), \n\naccount_info as (\n select *\n from \"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"stg_amazon_ads__profile\"\n where _fivetran_deleted = False\n),\n\nportfolios as (\n select *\n from \"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"stg_amazon_ads__portfolio_history\"\n where is_most_recent_record = True\n), \n\ncampaigns as (\n select *\n from \"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"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\n --use campaign report since portfolio report not provided\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", "relation_name": "\"postgres\".\"ad_reporting_docs_amazon_ads\".\"amazon_ads__portfolio_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:45.951228Z", "completed_at": "2024-07-29T18:33:45.956236Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:45.957064Z", "completed_at": "2024-07-29T18:33:45.957068Z"}], "thread_id": "Thread-3", "execution_time": 0.010889768600463867, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.amazon_ads_source.not_null_stg_amazon_ads__profile_profile_id.bd192c102b", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect profile_id\nfrom \"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"stg_amazon_ads__profile\"\nwhere profile_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:45.957674Z", "completed_at": "2024-07-29T18:33:45.968077Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:45.968379Z", "completed_at": "2024-07-29T18:33:45.968384Z"}], "thread_id": "Thread-2", "execution_time": 0.0124359130859375, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_amazon_ads_source\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:45.961991Z", "completed_at": "2024-07-29T18:33:45.973223Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:45.973644Z", "completed_at": "2024-07-29T18:33:45.973649Z"}], "thread_id": "Thread-1", "execution_time": 0.012710094451904297, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.amazon_ads_source.not_null_stg_amazon_ads__targeting_keyword_report_keyword_id.101a3299d7", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect keyword_id\nfrom \"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"stg_amazon_ads__targeting_keyword_report\"\nwhere keyword_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:45.964929Z", "completed_at": "2024-07-29T18:33:45.973438Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:45.974015Z", "completed_at": "2024-07-29T18:33:45.974018Z"}], "thread_id": "Thread-3", "execution_time": 0.012792110443115234, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_amazon_ads_source\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:45.969489Z", "completed_at": "2024-07-29T18:33:45.974650Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:45.975332Z", "completed_at": "2024-07-29T18:33:45.975336Z"}], "thread_id": "Thread-2", "execution_time": 0.006335020065307617, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.amazon_ads_source.not_null_stg_amazon_ads__search_term_ad_keyword_report_search_term.ef04af3b06", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect search_term\nfrom \"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"stg_amazon_ads__search_term_ad_keyword_report\"\nwhere search_term is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:45.983059Z", "completed_at": "2024-07-29T18:33:45.986084Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:45.986687Z", "completed_at": "2024-07-29T18:33:45.986692Z"}], "thread_id": "Thread-2", "execution_time": 0.006990909576416016, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_group_history_modified_at.e5d65fa28f", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect modified_at\nfrom \"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"stg_apple_search_ads__ad_group_history\"\nwhere modified_at is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:45.980002Z", "completed_at": "2024-07-29T18:33:45.986293Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:45.987051Z", "completed_at": "2024-07-29T18:33:45.987055Z"}], "thread_id": "Thread-3", "execution_time": 0.011432886123657227, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_group_history_ad_group_id.dc128eecb7", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom \"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"stg_apple_search_ads__ad_group_history\"\nwhere ad_group_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:45.976513Z", "completed_at": "2024-07-29T18:33:45.986495Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:45.987394Z", "completed_at": "2024-07-29T18:33:45.987397Z"}], "thread_id": "Thread-1", "execution_time": 0.012356042861938477, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_apple_search_ads_source\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:45.989722Z", "completed_at": "2024-07-29T18:33:45.999136Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:45.999353Z", "completed_at": "2024-07-29T18:33:45.999358Z"}], "thread_id": "Thread-2", "execution_time": 0.010948657989501953, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_apple_search_ads_source\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:45.996222Z", "completed_at": "2024-07-29T18:33:46.003949Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.004210Z", "completed_at": "2024-07-29T18:33:46.004215Z"}], "thread_id": "Thread-1", "execution_time": 0.015357255935668945, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_group_report_date_day.4dfd46a43b", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"stg_apple_search_ads__ad_group_report\"\nwhere date_day is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:45.993423Z", "completed_at": "2024-07-29T18:33:46.005312Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.008551Z", "completed_at": "2024-07-29T18:33:46.008556Z"}], "thread_id": "Thread-3", "execution_time": 0.0199129581451416, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_group_report_ad_group_id.a115f9cfc1", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom \"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"stg_apple_search_ads__ad_group_report\"\nwhere ad_group_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.000369Z", "completed_at": "2024-07-29T18:33:46.008330Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.008956Z", "completed_at": "2024-07-29T18:33:46.008960Z"}], "thread_id": "Thread-2", "execution_time": 0.00906229019165039, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_apple_search_ads_source\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.005519Z", "completed_at": "2024-07-29T18:33:46.010082Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.010698Z", "completed_at": "2024-07-29T18:33:46.010701Z"}], "thread_id": "Thread-1", "execution_time": 0.005877017974853516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__campaign_history_campaign_id.3f0f7502b8", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom \"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"stg_apple_search_ads__campaign_history\"\nwhere campaign_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.014392Z", "completed_at": "2024-07-29T18:33:46.021535Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.021974Z", "completed_at": "2024-07-29T18:33:46.021979Z"}], "thread_id": "Thread-2", "execution_time": 0.011754989624023438, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_apple_search_ads_source\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.011233Z", "completed_at": "2024-07-29T18:33:46.021741Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.022544Z", "completed_at": "2024-07-29T18:33:46.022549Z"}], "thread_id": "Thread-3", "execution_time": 0.012739896774291992, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__campaign_history_modified_at.f34a7a97c9", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect modified_at\nfrom \"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"stg_apple_search_ads__campaign_history\"\nwhere modified_at is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.017830Z", "completed_at": "2024-07-29T18:33:46.022336Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.023178Z", "completed_at": "2024-07-29T18:33:46.023182Z"}], "thread_id": "Thread-1", "execution_time": 0.0059146881103515625, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_apple_search_ads_source\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.025038Z", "completed_at": "2024-07-29T18:33:46.033878Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.034299Z", "completed_at": "2024-07-29T18:33:46.034303Z"}], "thread_id": "Thread-2", "execution_time": 0.010606765747070312, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_history_ad_id.4ad3bde32a", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom \"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"stg_apple_search_ads__ad_history\"\nwhere ad_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.028107Z", "completed_at": "2024-07-29T18:33:46.034096Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.034677Z", "completed_at": "2024-07-29T18:33:46.034681Z"}], "thread_id": "Thread-3", "execution_time": 0.010505199432373047, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_history_modified_at.2eea7e006d", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect modified_at\nfrom \"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"stg_apple_search_ads__ad_history\"\nwhere modified_at is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.030928Z", "completed_at": "2024-07-29T18:33:46.035252Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.035944Z", "completed_at": "2024-07-29T18:33:46.035948Z"}], "thread_id": "Thread-1", "execution_time": 0.011356830596923828, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_report_ad_group_id.a397755e9f", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom \"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"stg_apple_search_ads__ad_report\"\nwhere ad_group_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.041084Z", "completed_at": "2024-07-29T18:33:46.047317Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.047735Z", "completed_at": "2024-07-29T18:33:46.047741Z"}], "thread_id": "Thread-3", "execution_time": 0.011525869369506836, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_report_date_day.e6252346d8", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"stg_apple_search_ads__ad_report\"\nwhere date_day is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.037120Z", "completed_at": "2024-07-29T18:33:46.047541Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.048120Z", "completed_at": "2024-07-29T18:33:46.048124Z"}], "thread_id": "Thread-2", "execution_time": 0.012457847595214844, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_report_ad_id.d08e760c58", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom \"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"stg_apple_search_ads__ad_report\"\nwhere ad_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.044253Z", "completed_at": "2024-07-29T18:33:46.048713Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.049376Z", "completed_at": "2024-07-29T18:33:46.049380Z"}], "thread_id": "Thread-1", "execution_time": 0.008590221405029297, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_apple_search_ads_source\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.050568Z", "completed_at": "2024-07-29T18:33:46.057512Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.062096Z", "completed_at": "2024-07-29T18:33:46.062102Z"}], "thread_id": "Thread-3", "execution_time": 0.013011932373046875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__campaign_report_campaign_id.b83941e728", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom \"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"stg_apple_search_ads__campaign_report\"\nwhere campaign_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.053652Z", "completed_at": "2024-07-29T18:33:46.062479Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.062977Z", "completed_at": "2024-07-29T18:33:46.062980Z"}], "thread_id": "Thread-2", "execution_time": 0.0133209228515625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__campaign_report_date_day.c8dc10a6f3", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"stg_apple_search_ads__campaign_report\"\nwhere date_day is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.057717Z", "completed_at": "2024-07-29T18:33:46.063772Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.064425Z", "completed_at": "2024-07-29T18:33:46.064428Z"}], "thread_id": "Thread-1", "execution_time": 0.011157989501953125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.apple_search_ads.apple_search_ads__ad_group_report", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"stg_apple_search_ads__ad_group_report\"\n), \n\nad_group as (\n\n select * \n from \"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"stg_apple_search_ads__ad_group_history\"\n where is_most_recent_record = True\n), \n\ncampaign as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"stg_apple_search_ads__campaign_history\"\n where is_most_recent_record = True\n), \n\norganization as (\n\n select * \n from \"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"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.impressions) as impressions,\n sum(report.spend) as spend\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", "relation_name": "\"postgres\".\"ad_reporting_docs_apple_search_ads\".\"apple_search_ads__ad_group_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.064851Z", "completed_at": "2024-07-29T18:33:46.074398Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.074820Z", "completed_at": "2024-07-29T18:33:46.074825Z"}], "thread_id": "Thread-3", "execution_time": 0.01155996322631836, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.apple_search_ads.apple_search_ads__ad_report", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"stg_apple_search_ads__ad_report\"\n), \n\nad as (\n\n select * \n from \"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"stg_apple_search_ads__ad_history\"\n where is_most_recent_record = True\n), \n\nad_group as (\n\n select * \n from \"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"stg_apple_search_ads__ad_group_history\"\n where is_most_recent_record = True\n), \n\ncampaign as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"stg_apple_search_ads__campaign_history\"\n where is_most_recent_record = True\n), \n\norganization as (\n\n select * \n from \"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"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.impressions) as impressions,\n sum(report.spend) as spend\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", "relation_name": "\"postgres\".\"ad_reporting_docs_apple_search_ads\".\"apple_search_ads__ad_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.070191Z", "completed_at": "2024-07-29T18:33:46.080142Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.080818Z", "completed_at": "2024-07-29T18:33:46.080823Z"}], "thread_id": "Thread-2", "execution_time": 0.016681909561157227, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.apple_search_ads.apple_search_ads__campaign_report", "compiled": true, "compiled_code": "\n\nwith report as (\n \n select *\n from \"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"stg_apple_search_ads__campaign_report\"\n\n), \n\ncampaign as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"stg_apple_search_ads__campaign_history\"\n where is_most_recent_record = True\n), \n\norganization as (\n\n select * \n from \"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"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.impressions) as impressions,\n sum(report.spend) as spend\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", "relation_name": "\"postgres\".\"ad_reporting_docs_apple_search_ads\".\"apple_search_ads__campaign_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.075171Z", "completed_at": "2024-07-29T18:33:46.081607Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.085348Z", "completed_at": "2024-07-29T18:33:46.085353Z"}], "thread_id": "Thread-1", "execution_time": 0.011316061019897461, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.apple_search_ads.apple_search_ads__organization_report", "compiled": true, "compiled_code": "\n\nwith report as (\n \n select *\n from \"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"stg_apple_search_ads__campaign_report\"\n), \n\ncampaign as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"stg_apple_search_ads__campaign_history\"\n where is_most_recent_record = True\n), \n\norganization as (\n\n select * \n from \"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"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.impressions) as impressions,\n sum(report.spend) as spend\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", "relation_name": "\"postgres\".\"ad_reporting_docs_apple_search_ads\".\"apple_search_ads__organization_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.081814Z", "completed_at": "2024-07-29T18:33:46.089070Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.089609Z", "completed_at": "2024-07-29T18:33:46.089614Z"}], "thread_id": "Thread-3", "execution_time": 0.009124040603637695, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__organization_source_relation__organization_id.b5c488cb77", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, organization_id\n from \"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.086265Z", "completed_at": "2024-07-29T18:33:46.093967Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.094452Z", "completed_at": "2024-07-29T18:33:46.094457Z"}], "thread_id": "Thread-2", "execution_time": 0.009401798248291016, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__organization_organization_id.b013ce33cb", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom \"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"stg_apple_search_ads__organization\"\nwhere organization_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.090448Z", "completed_at": "2024-07-29T18:33:46.152485Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.156035Z", "completed_at": "2024-07-29T18:33:46.156042Z"}], "thread_id": "Thread-1", "execution_time": 0.06680989265441895, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_apple_search_ads_source\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.095291Z", "completed_at": "2024-07-29T18:33:46.160157Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.160613Z", "completed_at": "2024-07-29T18:33:46.160618Z"}], "thread_id": "Thread-3", "execution_time": 0.06650400161743164, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__keyword_history_keyword_id.889f83cfd2", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect keyword_id\nfrom \"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"stg_apple_search_ads__keyword_history\"\nwhere keyword_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.157022Z", "completed_at": "2024-07-29T18:33:46.165877Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.166414Z", "completed_at": "2024-07-29T18:33:46.166419Z"}], "thread_id": "Thread-2", "execution_time": 0.010711193084716797, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__keyword_history_modified_at.42fde5a287", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect modified_at\nfrom \"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"stg_apple_search_ads__keyword_history\"\nwhere modified_at is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.160994Z", "completed_at": "2024-07-29T18:33:46.167502Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.171534Z", "completed_at": "2024-07-29T18:33:46.171539Z"}], "thread_id": "Thread-1", "execution_time": 0.011658906936645508, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.apple_search_ads.apple_search_ads__keyword_report", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"stg_apple_search_ads__keyword_report\"\n), \n\nkeyword as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"stg_apple_search_ads__keyword_history\"\n where is_most_recent_record = True\n), \n\nad_group as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"stg_apple_search_ads__ad_group_history\"\n where is_most_recent_record = True\n), \n\ncampaign as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"stg_apple_search_ads__campaign_history\"\n where is_most_recent_record = True\n), \n\norganization as (\n\n select * \n from \"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"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.impressions) as impressions,\n sum(report.spend) as spend\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", "relation_name": "\"postgres\".\"ad_reporting_docs_apple_search_ads\".\"apple_search_ads__keyword_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.167928Z", "completed_at": "2024-07-29T18:33:46.175633Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.176055Z", "completed_at": "2024-07-29T18:33:46.176059Z"}], "thread_id": "Thread-3", "execution_time": 0.009317874908447266, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_apple_search_ads_source\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.172422Z", "completed_at": "2024-07-29T18:33:46.179550Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.180080Z", "completed_at": "2024-07-29T18:33:46.180084Z"}], "thread_id": "Thread-2", "execution_time": 0.012431859970092773, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__keyword_report_date_day.16098db928", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"stg_apple_search_ads__keyword_report\"\nwhere date_day is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.176416Z", "completed_at": "2024-07-29T18:33:46.180633Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.185176Z", "completed_at": "2024-07-29T18:33:46.185181Z"}], "thread_id": "Thread-1", "execution_time": 0.009881973266601562, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__keyword_report_keyword_id.501725b09e", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect keyword_id\nfrom \"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"stg_apple_search_ads__keyword_report\"\nwhere keyword_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.181073Z", "completed_at": "2024-07-29T18:33:46.190695Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.193817Z", "completed_at": "2024-07-29T18:33:46.193823Z"}], "thread_id": "Thread-3", "execution_time": 0.014060020446777344, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.apple_search_ads.apple_search_ads__search_term_report", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"stg_apple_search_ads__search_term_report\"\n), \n\ncampaign as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"stg_apple_search_ads__campaign_history\"\n where is_most_recent_record = True\n), \n\norganization as (\n\n select * \n from \"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"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.impressions) as impressions,\n sum(report.spend) as spend\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", "relation_name": "\"postgres\".\"ad_reporting_docs_apple_search_ads\".\"apple_search_ads__search_term_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.186538Z", "completed_at": "2024-07-29T18:33:46.194849Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.195276Z", "completed_at": "2024-07-29T18:33:46.195280Z"}], "thread_id": "Thread-2", "execution_time": 0.009782075881958008, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_apple_search_ads_source\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.190940Z", "completed_at": "2024-07-29T18:33:46.195617Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.198914Z", "completed_at": "2024-07-29T18:33:46.198918Z"}], "thread_id": "Thread-1", "execution_time": 0.012682914733886719, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__search_term_report__fivetran_id.aa430d1dad", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect _fivetran_id\nfrom \"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"stg_apple_search_ads__search_term_report\"\nwhere _fivetran_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.195821Z", "completed_at": "2024-07-29T18:33:46.203735Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.207601Z", "completed_at": "2024-07-29T18:33:46.207606Z"}], "thread_id": "Thread-3", "execution_time": 0.013144254684448242, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__search_term_report_date_day.fd93df3302", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_docs_apple_search_ads_source\".\"stg_apple_search_ads__search_term_report\"\nwhere date_day is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.203994Z", "completed_at": "2024-07-29T18:33:46.211679Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.211898Z", "completed_at": "2024-07-29T18:33:46.211903Z"}], "thread_id": "Thread-1", "execution_time": 0.011939764022827148, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.facebook_ads_source.not_null_stg_facebook_ads__ad_history_ad_id.11429d3064", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom \"postgres\".\"ad_reporting_docs_facebook_ads_source\".\"stg_facebook_ads__ad_history\"\nwhere ad_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.200249Z", "completed_at": "2024-07-29T18:33:46.212258Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.212745Z", "completed_at": "2024-07-29T18:33:46.212749Z"}], "thread_id": "Thread-2", "execution_time": 0.013493061065673828, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__ad_history_source_relation__ad_id__updated_at.664b870e6c", "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\".\"ad_reporting_docs_facebook_ads_source\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.208779Z", "completed_at": "2024-07-29T18:33:46.213110Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.213760Z", "completed_at": "2024-07-29T18:33:46.213764Z"}], "thread_id": "Thread-3", "execution_time": 0.0055239200592041016, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.facebook_ads_source.not_null_stg_facebook_ads__ad_history_updated_at.250a5a84e4", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect updated_at\nfrom \"postgres\".\"ad_reporting_docs_facebook_ads_source\".\"stg_facebook_ads__ad_history\"\nwhere updated_at is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.214719Z", "completed_at": "2024-07-29T18:33:46.225098Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.225340Z", "completed_at": "2024-07-29T18:33:46.225345Z"}], "thread_id": "Thread-1", "execution_time": 0.012108087539672852, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_facebook_ads_source\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.218380Z", "completed_at": "2024-07-29T18:33:46.225982Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.226453Z", "completed_at": "2024-07-29T18:33:46.226456Z"}], "thread_id": "Thread-2", "execution_time": 0.012226104736328125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.facebook_ads_source.not_null_stg_facebook_ads__ad_set_history_ad_set_id.e19a1df1bb", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_set_id\nfrom \"postgres\".\"ad_reporting_docs_facebook_ads_source\".\"stg_facebook_ads__ad_set_history\"\nwhere ad_set_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.221501Z", "completed_at": "2024-07-29T18:33:46.226802Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.227435Z", "completed_at": "2024-07-29T18:33:46.227438Z"}], "thread_id": "Thread-3", "execution_time": 0.00937509536743164, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.facebook_ads_source.not_null_stg_facebook_ads__ad_set_history_updated_at.ef7fafe0fa", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect updated_at\nfrom \"postgres\".\"ad_reporting_docs_facebook_ads_source\".\"stg_facebook_ads__ad_set_history\"\nwhere updated_at is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.227780Z", "completed_at": "2024-07-29T18:33:46.235925Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.239693Z", "completed_at": "2024-07-29T18:33:46.239699Z"}], "thread_id": "Thread-1", "execution_time": 0.013571023941040039, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__account_history_source_relation__account_id___fivetran_synced.f81aca1247", "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\".\"ad_reporting_docs_facebook_ads_source\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.232644Z", "completed_at": "2024-07-29T18:33:46.240880Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.244846Z", "completed_at": "2024-07-29T18:33:46.244851Z"}], "thread_id": "Thread-2", "execution_time": 0.013325929641723633, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.facebook_ads_source.not_null_stg_facebook_ads__account_history__fivetran_synced.0570e35e1f", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect _fivetran_synced\nfrom \"postgres\".\"ad_reporting_docs_facebook_ads_source\".\"stg_facebook_ads__account_history\"\nwhere _fivetran_synced is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.236176Z", "completed_at": "2024-07-29T18:33:46.241064Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.245227Z", "completed_at": "2024-07-29T18:33:46.245231Z"}], "thread_id": "Thread-3", "execution_time": 0.01289987564086914, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.facebook_ads_source.not_null_stg_facebook_ads__account_history_account_id.f1cf38c40f", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom \"postgres\".\"ad_reporting_docs_facebook_ads_source\".\"stg_facebook_ads__account_history\"\nwhere account_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.241281Z", "completed_at": "2024-07-29T18:33:46.246827Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.250147Z", "completed_at": "2024-07-29T18:33:46.250151Z"}], "thread_id": "Thread-1", "execution_time": 0.009766817092895508, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.facebook_ads.facebook_ads__account_report", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_facebook_ads_source\".\"stg_facebook_ads__basic_ad\"\n\n), \n\naccounts as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_facebook_ads_source\".\"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\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", "relation_name": "\"postgres\".\"ad_reporting_docs_facebook_ads\".\"facebook_ads__account_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.247208Z", "completed_at": "2024-07-29T18:33:46.254222Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.258026Z", "completed_at": "2024-07-29T18:33:46.258030Z"}], "thread_id": "Thread-2", "execution_time": 0.011946916580200195, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_facebook_ads_source\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.250514Z", "completed_at": "2024-07-29T18:33:46.258445Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.258945Z", "completed_at": "2024-07-29T18:33:46.258949Z"}], "thread_id": "Thread-3", "execution_time": 0.01260995864868164, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.facebook_ads_source.not_null_stg_facebook_ads__basic_ad_account_id.d06f6d861b", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom \"postgres\".\"ad_reporting_docs_facebook_ads_source\".\"stg_facebook_ads__basic_ad\"\nwhere account_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.254445Z", "completed_at": "2024-07-29T18:33:46.259771Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.260382Z", "completed_at": "2024-07-29T18:33:46.260386Z"}], "thread_id": "Thread-1", "execution_time": 0.006658077239990234, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.facebook_ads_source.not_null_stg_facebook_ads__basic_ad_ad_id.2611b250fc", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom \"postgres\".\"ad_reporting_docs_facebook_ads_source\".\"stg_facebook_ads__basic_ad\"\nwhere ad_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.260710Z", "completed_at": "2024-07-29T18:33:46.271265Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.275824Z", "completed_at": "2024-07-29T18:33:46.275829Z"}], "thread_id": "Thread-2", "execution_time": 0.01657390594482422, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.facebook_ads.facebook_ads__ad_report", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_facebook_ads_source\".\"stg_facebook_ads__basic_ad\"\n\n), \n\naccounts as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_facebook_ads_source\".\"stg_facebook_ads__account_history\"\n where is_most_recent_record = true\n\n),\n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_facebook_ads_source\".\"stg_facebook_ads__campaign_history\"\n where is_most_recent_record = true\n\n),\n\nad_sets as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_facebook_ads_source\".\"stg_facebook_ads__ad_set_history\"\n where is_most_recent_record = true\n\n),\n\nads as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_facebook_ads_source\".\"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 sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend\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 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\n)\n\nselect *\nfrom joined", "relation_name": "\"postgres\".\"ad_reporting_docs_facebook_ads\".\"facebook_ads__ad_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.266060Z", "completed_at": "2024-07-29T18:33:46.276230Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.276757Z", "completed_at": "2024-07-29T18:33:46.276761Z"}], "thread_id": "Thread-3", "execution_time": 0.01664590835571289, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.facebook_ads.facebook_ads__ad_set_report", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_facebook_ads_source\".\"stg_facebook_ads__basic_ad\"\n\n), \n\naccounts as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_facebook_ads_source\".\"stg_facebook_ads__account_history\"\n where is_most_recent_record = true\n\n),\n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_facebook_ads_source\".\"stg_facebook_ads__campaign_history\"\n where is_most_recent_record = true\n\n),\n\nad_sets as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_facebook_ads_source\".\"stg_facebook_ads__ad_set_history\"\n where is_most_recent_record = true\n\n),\n\nads as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_facebook_ads_source\".\"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 sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend\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 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\n)\n\nselect *\nfrom joined", "relation_name": "\"postgres\".\"ad_reporting_docs_facebook_ads\".\"facebook_ads__ad_set_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.271484Z", "completed_at": "2024-07-29T18:33:46.277378Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.278057Z", "completed_at": "2024-07-29T18:33:46.278060Z"}], "thread_id": "Thread-1", "execution_time": 0.007353782653808594, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.facebook_ads.facebook_ads__campaign_report", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_facebook_ads_source\".\"stg_facebook_ads__basic_ad\"\n\n), \n\naccounts as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_facebook_ads_source\".\"stg_facebook_ads__account_history\"\n where is_most_recent_record = true\n\n),\n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_facebook_ads_source\".\"stg_facebook_ads__campaign_history\"\n where is_most_recent_record = true\n\n),\n\nads as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_facebook_ads_source\".\"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\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 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", "relation_name": "\"postgres\".\"ad_reporting_docs_facebook_ads\".\"facebook_ads__campaign_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.278608Z", "completed_at": "2024-07-29T18:33:46.289141Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.289380Z", "completed_at": "2024-07-29T18:33:46.289386Z"}], "thread_id": "Thread-2", "execution_time": 0.012312173843383789, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__campaign_history_source_relation__campaign_id__updated_at.82c4f9a2a1", "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\".\"ad_reporting_docs_facebook_ads_source\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.283255Z", "completed_at": "2024-07-29T18:33:46.290029Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.290684Z", "completed_at": "2024-07-29T18:33:46.290687Z"}], "thread_id": "Thread-3", "execution_time": 0.012349128723144531, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.facebook_ads_source.not_null_stg_facebook_ads__campaign_history_campaign_id.1ca7a83852", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom \"postgres\".\"ad_reporting_docs_facebook_ads_source\".\"stg_facebook_ads__campaign_history\"\nwhere campaign_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.286369Z", "completed_at": "2024-07-29T18:33:46.290249Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.291027Z", "completed_at": "2024-07-29T18:33:46.291030Z"}], "thread_id": "Thread-1", "execution_time": 0.008138895034790039, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.facebook_ads_source.not_null_stg_facebook_ads__campaign_history_updated_at.9e59f99270", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect updated_at\nfrom \"postgres\".\"ad_reporting_docs_facebook_ads_source\".\"stg_facebook_ads__campaign_history\"\nwhere updated_at is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.295916Z", "completed_at": "2024-07-29T18:33:46.303461Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.303680Z", "completed_at": "2024-07-29T18:33:46.303684Z"}], "thread_id": "Thread-3", "execution_time": 0.008735895156860352, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.google_ads_source.not_null_stg_google_ads__account_history_account_id.5ca373f51f", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom \"postgres\".\"ad_reporting_docs_google_ads_source\".\"stg_google_ads__account_history\"\nwhere account_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.292024Z", "completed_at": "2024-07-29T18:33:46.307612Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.307882Z", "completed_at": "2024-07-29T18:33:46.307886Z"}], "thread_id": "Thread-2", "execution_time": 0.017496109008789062, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__account_history_source_relation__account_id__updated_at.0a4d931c44", "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\".\"ad_reporting_docs_google_ads_source\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.299628Z", "completed_at": "2024-07-29T18:33:46.308486Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.308971Z", "completed_at": "2024-07-29T18:33:46.308975Z"}], "thread_id": "Thread-1", "execution_time": 0.01377105712890625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.facebook_ads.facebook_ads__url_tags", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_facebook_ads_source\".\"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", "relation_name": "\"postgres\".\"ad_reporting_docs_facebook_ads\".\"facebook_ads__url_tags\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.304675Z", "completed_at": "2024-07-29T18:33:46.309309Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.310060Z", "completed_at": "2024-07-29T18:33:46.310064Z"}], "thread_id": "Thread-3", "execution_time": 0.005856037139892578, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__creative_history_source_relation___fivetran_id.2466dae947", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, _fivetran_id\n from \"postgres\".\"ad_reporting_docs_facebook_ads_source\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.310415Z", "completed_at": "2024-07-29T18:33:46.317997Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.324614Z", "completed_at": "2024-07-29T18:33:46.324620Z"}], "thread_id": "Thread-2", "execution_time": 0.01595616340637207, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.facebook_ads_source.not_null_stg_facebook_ads__creative_history__fivetran_synced.3b0593cb4f", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect _fivetran_synced\nfrom \"postgres\".\"ad_reporting_docs_facebook_ads_source\".\"stg_facebook_ads__creative_history\"\nwhere _fivetran_synced is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.314929Z", "completed_at": "2024-07-29T18:33:46.325009Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.325526Z", "completed_at": "2024-07-29T18:33:46.325530Z"}], "thread_id": "Thread-1", "execution_time": 0.011599302291870117, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.facebook_ads_source.not_null_stg_facebook_ads__creative_history_creative_id.eb4d804261", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect creative_id\nfrom \"postgres\".\"ad_reporting_docs_facebook_ads_source\".\"stg_facebook_ads__creative_history\"\nwhere creative_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.318199Z", "completed_at": "2024-07-29T18:33:46.325891Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.326583Z", "completed_at": "2024-07-29T18:33:46.326587Z"}], "thread_id": "Thread-3", "execution_time": 0.011934995651245117, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads.google_ads__account_report", "compiled": true, "compiled_code": "\n\nwith stats as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_google_ads_source\".\"stg_google_ads__account_stats\"\n), \n\naccounts as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_google_ads_source\".\"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", "relation_name": "\"postgres\".\"ad_reporting_docs_google_ads\".\"google_ads__account_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.327625Z", "completed_at": "2024-07-29T18:33:46.338524Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.338765Z", "completed_at": "2024-07-29T18:33:46.338770Z"}], "thread_id": "Thread-2", "execution_time": 0.01274871826171875, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_google_ads_source\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.331728Z", "completed_at": "2024-07-29T18:33:46.339689Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.340275Z", "completed_at": "2024-07-29T18:33:46.340279Z"}], "thread_id": "Thread-1", "execution_time": 0.013210773468017578, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.google_ads_source.not_null_stg_google_ads__account_stats_account_id.2a9da5417b", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom \"postgres\".\"ad_reporting_docs_google_ads_source\".\"stg_google_ads__account_stats\"\nwhere account_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.335644Z", "completed_at": "2024-07-29T18:33:46.340088Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.343853Z", "completed_at": "2024-07-29T18:33:46.343858Z"}], "thread_id": "Thread-3", "execution_time": 0.01244807243347168, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.google_ads_source.not_null_stg_google_ads__account_stats_date_day.57ac8772d5", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_docs_google_ads_source\".\"stg_google_ads__account_stats\"\nwhere date_day is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.340614Z", "completed_at": "2024-07-29T18:33:46.345454Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.348819Z", "completed_at": "2024-07-29T18:33:46.348824Z"}], "thread_id": "Thread-2", "execution_time": 0.00944375991821289, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_google_ads_source\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.345847Z", "completed_at": "2024-07-29T18:33:46.353557Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.353966Z", "completed_at": "2024-07-29T18:33:46.353971Z"}], "thread_id": "Thread-1", "execution_time": 0.009263992309570312, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.google_ads_source.not_null_stg_google_ads__ad_group_criterion_history_criterion_id.7a0a8b8476", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect criterion_id\nfrom \"postgres\".\"ad_reporting_docs_google_ads_source\".\"stg_google_ads__ad_group_criterion_history\"\nwhere criterion_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.349178Z", "completed_at": "2024-07-29T18:33:46.357104Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.357611Z", "completed_at": "2024-07-29T18:33:46.357616Z"}], "thread_id": "Thread-3", "execution_time": 0.012662887573242188, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_google_ads_source\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.354331Z", "completed_at": "2024-07-29T18:33:46.358686Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.361955Z", "completed_at": "2024-07-29T18:33:46.361959Z"}], "thread_id": "Thread-2", "execution_time": 0.008717060089111328, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.google_ads_source.not_null_stg_google_ads__ad_group_stats_ad_group_id.a8d430f077", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom \"postgres\".\"ad_reporting_docs_google_ads_source\".\"stg_google_ads__ad_group_stats\"\nwhere ad_group_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.359103Z", "completed_at": "2024-07-29T18:33:46.366300Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.370133Z", "completed_at": "2024-07-29T18:33:46.370138Z"}], "thread_id": "Thread-1", "execution_time": 0.012217998504638672, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.google_ads_source.not_null_stg_google_ads__ad_group_stats_date_day.3c6a221786", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_docs_google_ads_source\".\"stg_google_ads__ad_group_stats\"\nwhere date_day is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.362832Z", "completed_at": "2024-07-29T18:33:46.370515Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.371017Z", "completed_at": "2024-07-29T18:33:46.371020Z"}], "thread_id": "Thread-3", "execution_time": 0.012196063995361328, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_google_ads_source\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.366501Z", "completed_at": "2024-07-29T18:33:46.371621Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.372259Z", "completed_at": "2024-07-29T18:33:46.372262Z"}], "thread_id": "Thread-2", "execution_time": 0.00652623176574707, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.google_ads_source.not_null_stg_google_ads__ad_group_history_ad_group_id.f6c7c939be", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom \"postgres\".\"ad_reporting_docs_google_ads_source\".\"stg_google_ads__ad_group_history\"\nwhere ad_group_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.372816Z", "completed_at": "2024-07-29T18:33:46.382734Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.382971Z", "completed_at": "2024-07-29T18:33:46.382976Z"}], "thread_id": "Thread-1", "execution_time": 0.011647939682006836, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_google_ads_source\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.376809Z", "completed_at": "2024-07-29T18:33:46.383566Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.384059Z", "completed_at": "2024-07-29T18:33:46.384063Z"}], "thread_id": "Thread-3", "execution_time": 0.011519908905029297, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.google_ads_source.not_null_stg_google_ads__ad_stats_ad_id.2612d83cc8", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom \"postgres\".\"ad_reporting_docs_google_ads_source\".\"stg_google_ads__ad_stats\"\nwhere ad_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.379872Z", "completed_at": "2024-07-29T18:33:46.384593Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.388762Z", "completed_at": "2024-07-29T18:33:46.388767Z"}], "thread_id": "Thread-2", "execution_time": 0.012256622314453125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.google_ads_source.not_null_stg_google_ads__ad_stats_date_day.9a43c0fce4", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_docs_google_ads_source\".\"stg_google_ads__ad_stats\"\nwhere date_day is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.385029Z", "completed_at": "2024-07-29T18:33:46.393132Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.396286Z", "completed_at": "2024-07-29T18:33:46.396291Z"}], "thread_id": "Thread-1", "execution_time": 0.012550115585327148, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_google_ads_source\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.390121Z", "completed_at": "2024-07-29T18:33:46.396990Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.397446Z", "completed_at": "2024-07-29T18:33:46.397450Z"}], "thread_id": "Thread-3", "execution_time": 0.008367776870727539, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.google_ads_source.not_null_stg_google_ads__ad_history_ad_id.8c23c38248", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom \"postgres\".\"ad_reporting_docs_google_ads_source\".\"stg_google_ads__ad_history\"\nwhere ad_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.393378Z", "completed_at": "2024-07-29T18:33:46.397997Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.401268Z", "completed_at": "2024-07-29T18:33:46.401273Z"}], "thread_id": "Thread-2", "execution_time": 0.011449813842773438, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_google_ads_source\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.398430Z", "completed_at": "2024-07-29T18:33:46.406448Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.411185Z", "completed_at": "2024-07-29T18:33:46.411191Z"}], "thread_id": "Thread-1", "execution_time": 0.014063835144042969, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.google_ads_source.not_null_stg_google_ads__campaign_stats_campaign_id.11587fa10f", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom \"postgres\".\"ad_reporting_docs_google_ads_source\".\"stg_google_ads__campaign_stats\"\nwhere campaign_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.406686Z", "completed_at": "2024-07-29T18:33:46.412319Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.417651Z", "completed_at": "2024-07-29T18:33:46.417656Z"}], "thread_id": "Thread-2", "execution_time": 0.015341758728027344, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads.google_ads__ad_group_report", "compiled": true, "compiled_code": "\n\nwith stats as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_google_ads_source\".\"stg_google_ads__ad_group_stats\"\n), \n\naccounts as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_google_ads_source\".\"stg_google_ads__account_history\"\n where is_most_recent_record = True\n), \n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_google_ads_source\".\"stg_google_ads__campaign_history\"\n where is_most_recent_record = True\n),\n\nad_groups as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_google_ads_source\".\"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", "relation_name": "\"postgres\".\"ad_reporting_docs_google_ads\".\"google_ads__ad_group_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.402601Z", "completed_at": "2024-07-29T18:33:46.412520Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.418011Z", "completed_at": "2024-07-29T18:33:46.418015Z"}], "thread_id": "Thread-3", "execution_time": 0.016427040100097656, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.google_ads_source.not_null_stg_google_ads__campaign_stats_date_day.dc097fd76b", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_docs_google_ads_source\".\"stg_google_ads__campaign_stats\"\nwhere date_day is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.412703Z", "completed_at": "2024-07-29T18:33:46.419204Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.419792Z", "completed_at": "2024-07-29T18:33:46.419795Z"}], "thread_id": "Thread-1", "execution_time": 0.008070230484008789, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads.google_ads__ad_report", "compiled": true, "compiled_code": "\n\nwith stats as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_google_ads_source\".\"stg_google_ads__ad_stats\"\n), \n\naccounts as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_google_ads_source\".\"stg_google_ads__account_history\"\n where is_most_recent_record = True\n), \n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_google_ads_source\".\"stg_google_ads__campaign_history\"\n where is_most_recent_record = True\n), \n\nad_groups as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_google_ads_source\".\"stg_google_ads__ad_group_history\"\n where is_most_recent_record = True\n),\n\nads as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_google_ads_source\".\"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", "relation_name": "\"postgres\".\"ad_reporting_docs_google_ads\".\"google_ads__ad_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.420399Z", "completed_at": "2024-07-29T18:33:46.431989Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.435140Z", "completed_at": "2024-07-29T18:33:46.435146Z"}], "thread_id": "Thread-2", "execution_time": 0.01624321937561035, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads.google_ads__campaign_report", "compiled": true, "compiled_code": "\n\nwith stats as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_google_ads_source\".\"stg_google_ads__campaign_stats\"\n), \n\naccounts as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_google_ads_source\".\"stg_google_ads__account_history\"\n where is_most_recent_record = True\n), \n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_google_ads_source\".\"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", "relation_name": "\"postgres\".\"ad_reporting_docs_google_ads\".\"google_ads__campaign_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.425438Z", "completed_at": "2024-07-29T18:33:46.436067Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.436699Z", "completed_at": "2024-07-29T18:33:46.436703Z"}], "thread_id": "Thread-3", "execution_time": 0.01735997200012207, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads.google_ads__url_report", "compiled": true, "compiled_code": "\n\nwith stats as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_google_ads_source\".\"stg_google_ads__ad_stats\"\n), \n\naccounts as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_google_ads_source\".\"stg_google_ads__account_history\"\n where is_most_recent_record = True\n), \n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_google_ads_source\".\"stg_google_ads__campaign_history\"\n where is_most_recent_record = True\n), \n\nad_groups as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_google_ads_source\".\"stg_google_ads__ad_group_history\"\n where is_most_recent_record = True\n),\n\nads as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_google_ads_source\".\"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", "relation_name": "\"postgres\".\"ad_reporting_docs_google_ads\".\"google_ads__url_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.432209Z", "completed_at": "2024-07-29T18:33:46.436514Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.439940Z", "completed_at": "2024-07-29T18:33:46.439945Z"}], "thread_id": "Thread-1", "execution_time": 0.008522987365722656, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__campaign_history_source_relation__campaign_id__updated_at.008fea6b77", "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\".\"ad_reporting_docs_google_ads_source\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.437037Z", "completed_at": "2024-07-29T18:33:46.441595Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.446004Z", "completed_at": "2024-07-29T18:33:46.446009Z"}], "thread_id": "Thread-2", "execution_time": 0.01026296615600586, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.google_ads_source.not_null_stg_google_ads__campaign_history_campaign_id.fa0c825e75", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom \"postgres\".\"ad_reporting_docs_google_ads_source\".\"stg_google_ads__campaign_history\"\nwhere campaign_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.446359Z", "completed_at": "2024-07-29T18:33:46.452836Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.453257Z", "completed_at": "2024-07-29T18:33:46.453262Z"}], "thread_id": "Thread-1", "execution_time": 0.012151241302490234, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.linkedin_source.not_null_stg_linkedin_ads__account_history_account_id.a9fa7f93c0", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom \"postgres\".\"ad_reporting_docs_linkedin_ads_source\".\"stg_linkedin_ads__account_history\"\nwhere account_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.441963Z", "completed_at": "2024-07-29T18:33:46.453046Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.453612Z", "completed_at": "2024-07-29T18:33:46.453615Z"}], "thread_id": "Thread-3", "execution_time": 0.012746095657348633, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__account_history_source_relation__account_id__version_tag.c7a0383d8c", "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\".\"ad_reporting_docs_linkedin_ads_source\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.449958Z", "completed_at": "2024-07-29T18:33:46.453970Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.454644Z", "completed_at": "2024-07-29T18:33:46.454647Z"}], "thread_id": "Thread-2", "execution_time": 0.005227088928222656, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.linkedin_source.not_null_stg_linkedin_ads__account_history_version_tag.58c46c5d81", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect version_tag\nfrom \"postgres\".\"ad_reporting_docs_linkedin_ads_source\".\"stg_linkedin_ads__account_history\"\nwhere version_tag is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.459158Z", "completed_at": "2024-07-29T18:33:46.465924Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.466348Z", "completed_at": "2024-07-29T18:33:46.466353Z"}], "thread_id": "Thread-3", "execution_time": 0.011221170425415039, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.linkedin_source.not_null_stg_linkedin_ads__ad_analytics_by_campaign_campaign_id.d6ae242f1a", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom \"postgres\".\"ad_reporting_docs_linkedin_ads_source\".\"stg_linkedin_ads__ad_analytics_by_campaign\"\nwhere campaign_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.456257Z", "completed_at": "2024-07-29T18:33:46.466142Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.467097Z", "completed_at": "2024-07-29T18:33:46.467101Z"}], "thread_id": "Thread-1", "execution_time": 0.012188911437988281, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_linkedin_ads_source\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.463017Z", "completed_at": "2024-07-29T18:33:46.466696Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.467713Z", "completed_at": "2024-07-29T18:33:46.467716Z"}], "thread_id": "Thread-2", "execution_time": 0.011718034744262695, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.linkedin_source.not_null_stg_linkedin_ads__ad_analytics_by_campaign_date_day.ef97bed766", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_docs_linkedin_ads_source\".\"stg_linkedin_ads__ad_analytics_by_campaign\"\nwhere date_day is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.470021Z", "completed_at": "2024-07-29T18:33:46.480187Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.480405Z", "completed_at": "2024-07-29T18:33:46.480410Z"}], "thread_id": "Thread-3", "execution_time": 0.011986017227172852, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_linkedin_ads_source\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.473544Z", "completed_at": "2024-07-29T18:33:46.486525Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.487008Z", "completed_at": "2024-07-29T18:33:46.487014Z"}], "thread_id": "Thread-1", "execution_time": 0.0179140567779541, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.linkedin_source.not_null_stg_linkedin_ads__ad_analytics_by_creative_creative_id.062abfe14b", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect creative_id\nfrom \"postgres\".\"ad_reporting_docs_linkedin_ads_source\".\"stg_linkedin_ads__ad_analytics_by_creative\"\nwhere creative_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.477053Z", "completed_at": "2024-07-29T18:33:46.486748Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.487428Z", "completed_at": "2024-07-29T18:33:46.487432Z"}], "thread_id": "Thread-2", "execution_time": 0.017901182174682617, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.linkedin_source.not_null_stg_linkedin_ads__ad_analytics_by_creative_date_day.cb81bc4766", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_docs_linkedin_ads_source\".\"stg_linkedin_ads__ad_analytics_by_creative\"\nwhere date_day is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.481392Z", "completed_at": "2024-07-29T18:33:46.487796Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.488510Z", "completed_at": "2024-07-29T18:33:46.488514Z"}], "thread_id": "Thread-3", "execution_time": 0.0075800418853759766, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads.google_ads__keyword_report", "compiled": true, "compiled_code": "\n\nwith stats as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_google_ads_source\".\"stg_google_ads__keyword_stats\"\n), \n\naccounts as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_google_ads_source\".\"stg_google_ads__account_history\"\n where is_most_recent_record = True\n),\n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_google_ads_source\".\"stg_google_ads__campaign_history\"\n where is_most_recent_record = True\n), \n\nad_groups as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_google_ads_source\".\"stg_google_ads__ad_group_history\"\n where is_most_recent_record = True\n), \n\ncriterions as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_google_ads_source\".\"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", "relation_name": "\"postgres\".\"ad_reporting_docs_google_ads\".\"google_ads__keyword_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.490327Z", "completed_at": "2024-07-29T18:33:46.500224Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.500645Z", "completed_at": "2024-07-29T18:33:46.500651Z"}], "thread_id": "Thread-1", "execution_time": 0.01185917854309082, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__keyword_stats_source_relation__keyword_id__date_day.4ecf84a32f", "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\".\"ad_reporting_docs_google_ads_source\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.493451Z", "completed_at": "2024-07-29T18:33:46.500446Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.501025Z", "completed_at": "2024-07-29T18:33:46.501028Z"}], "thread_id": "Thread-2", "execution_time": 0.011982202529907227, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.google_ads_source.not_null_stg_google_ads__keyword_stats_date_day.a9da72f74d", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_docs_google_ads_source\".\"stg_google_ads__keyword_stats\"\nwhere date_day is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.497346Z", "completed_at": "2024-07-29T18:33:46.501345Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.502041Z", "completed_at": "2024-07-29T18:33:46.502044Z"}], "thread_id": "Thread-3", "execution_time": 0.011996984481811523, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.google_ads_source.not_null_stg_google_ads__keyword_stats_keyword_id.f0945d6cf0", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect keyword_id\nfrom \"postgres\".\"ad_reporting_docs_google_ads_source\".\"stg_google_ads__keyword_stats\"\nwhere keyword_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.507289Z", "completed_at": "2024-07-29T18:33:46.514244Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.514664Z", "completed_at": "2024-07-29T18:33:46.514669Z"}], "thread_id": "Thread-2", "execution_time": 0.012101173400878906, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.linkedin_source.not_null_stg_linkedin_ads__campaign_group_history_campaign_group_id.3888f3777d", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_group_id\nfrom \"postgres\".\"ad_reporting_docs_linkedin_ads_source\".\"stg_linkedin_ads__campaign_group_history\"\nwhere campaign_group_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.503706Z", "completed_at": "2024-07-29T18:33:46.514445Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.515062Z", "completed_at": "2024-07-29T18:33:46.515066Z"}], "thread_id": "Thread-1", "execution_time": 0.012729167938232422, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_linkedin_ads_source\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.510457Z", "completed_at": "2024-07-29T18:33:46.515647Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.516354Z", "completed_at": "2024-07-29T18:33:46.516357Z"}], "thread_id": "Thread-3", "execution_time": 0.012918233871459961, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.linkedin_source.not_null_stg_linkedin_ads__campaign_group_history_last_modified_at.a716e2a7ea", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect last_modified_at\nfrom \"postgres\".\"ad_reporting_docs_linkedin_ads_source\".\"stg_linkedin_ads__campaign_group_history\"\nwhere last_modified_at is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.517550Z", "completed_at": "2024-07-29T18:33:46.535022Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.535246Z", "completed_at": "2024-07-29T18:33:46.535252Z"}], "thread_id": "Thread-2", "execution_time": 0.019201040267944336, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_microsoft_ads_source\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.526057Z", "completed_at": "2024-07-29T18:33:46.541504Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.541774Z", "completed_at": "2024-07-29T18:33:46.541779Z"}], "thread_id": "Thread-3", "execution_time": 0.01909780502319336, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.linkedin.linkedin_ads__account_report", "compiled": true, "compiled_code": "\n\nwith account as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_linkedin_ads_source\".\"stg_linkedin_ads__account_history\"\n where is_latest_version\n),\n\ncampaign as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_linkedin_ads_source\".\"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\".\"ad_reporting_docs_linkedin_ads_source\".\"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 , sum(coalesce(external_website_conversions, 0)) as external_website_conversions\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 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", "relation_name": "\"postgres\".\"ad_reporting_docs_linkedin_ads\".\"linkedin_ads__account_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.522978Z", "completed_at": "2024-07-29T18:33:46.542439Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.542934Z", "completed_at": "2024-07-29T18:33:46.542938Z"}], "thread_id": "Thread-1", "execution_time": 0.026302099227905273, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.microsoft_ads_source.not_null_stg_microsoft_ads__account_daily_report_account_id.b17f45fe79", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom \"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"stg_microsoft_ads__account_daily_report\"\nwhere account_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.536236Z", "completed_at": "2024-07-29T18:33:46.543472Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.549245Z", "completed_at": "2024-07-29T18:33:46.549250Z"}], "thread_id": "Thread-2", "execution_time": 0.013474225997924805, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.linkedin.linkedin_ads__campaign_group_report", "compiled": true, "compiled_code": "\n\nwith campaign_group as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_linkedin_ads_source\".\"stg_linkedin_ads__campaign_group_history\"\n where is_latest_version\n),\n\ncampaign as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_linkedin_ads_source\".\"stg_linkedin_ads__campaign_history\"\n where is_latest_version\n),\n\naccount as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_linkedin_ads_source\".\"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\".\"ad_reporting_docs_linkedin_ads_source\".\"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 , sum(coalesce(external_website_conversions, 0)) as external_website_conversions\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 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", "relation_name": "\"postgres\".\"ad_reporting_docs_linkedin_ads\".\"linkedin_ads__campaign_group_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.543923Z", "completed_at": "2024-07-29T18:33:46.553824Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.557708Z", "completed_at": "2024-07-29T18:33:46.557714Z"}], "thread_id": "Thread-3", "execution_time": 0.015082836151123047, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.linkedin.linkedin_ads__campaign_report", "compiled": true, "compiled_code": "\n\nwith campaign as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_linkedin_ads_source\".\"stg_linkedin_ads__campaign_history\"\n where is_latest_version\n),\n\ncampaign_group as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_linkedin_ads_source\".\"stg_linkedin_ads__campaign_group_history\"\n where is_latest_version\n),\n\naccount as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_linkedin_ads_source\".\"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\".\"ad_reporting_docs_linkedin_ads_source\".\"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 , sum(coalesce(external_website_conversions, 0)) as external_website_conversions\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 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", "relation_name": "\"postgres\".\"ad_reporting_docs_linkedin_ads\".\"linkedin_ads__campaign_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.550686Z", "completed_at": "2024-07-29T18:33:46.558491Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.558926Z", "completed_at": "2024-07-29T18:33:46.558930Z"}], "thread_id": "Thread-1", "execution_time": 0.009362220764160156, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__campaign_history_source_relation__version_tag__campaign_id.65ed9cedae", "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\".\"ad_reporting_docs_linkedin_ads_source\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.554067Z", "completed_at": "2024-07-29T18:33:46.559252Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.559872Z", "completed_at": "2024-07-29T18:33:46.559876Z"}], "thread_id": "Thread-2", "execution_time": 0.009479284286499023, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.linkedin_source.not_null_stg_linkedin_ads__campaign_history_campaign_id.b026971ca2", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom \"postgres\".\"ad_reporting_docs_linkedin_ads_source\".\"stg_linkedin_ads__campaign_history\"\nwhere campaign_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.560203Z", "completed_at": "2024-07-29T18:33:46.570014Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.585615Z", "completed_at": "2024-07-29T18:33:46.585621Z"}], "thread_id": "Thread-3", "execution_time": 0.026999950408935547, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.linkedin_source.not_null_stg_linkedin_ads__campaign_history_version_tag.64954cc469", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect version_tag\nfrom \"postgres\".\"ad_reporting_docs_linkedin_ads_source\".\"stg_linkedin_ads__campaign_history\"\nwhere version_tag is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.563956Z", "completed_at": "2024-07-29T18:33:46.585094Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.586058Z", "completed_at": "2024-07-29T18:33:46.586062Z"}], "thread_id": "Thread-1", "execution_time": 0.02312302589416504, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.linkedin.linkedin_ads__creative_report", "compiled": true, "compiled_code": "\n\nwith creative as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_linkedin_ads_source\".\"stg_linkedin_ads__creative_history\"\n where is_latest_version\n),\n\ncampaign as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_linkedin_ads_source\".\"stg_linkedin_ads__campaign_history\"\n where is_latest_version\n),\n\ncampaign_group as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_linkedin_ads_source\".\"stg_linkedin_ads__campaign_group_history\"\n where is_latest_version\n),\n\naccount as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_linkedin_ads_source\".\"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\".\"ad_reporting_docs_linkedin_ads_source\".\"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 , sum(coalesce(external_website_conversions, 0)) as external_website_conversions\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 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", "relation_name": "\"postgres\".\"ad_reporting_docs_linkedin_ads\".\"linkedin_ads__creative_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.578832Z", "completed_at": "2024-07-29T18:33:46.587784Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.588668Z", "completed_at": "2024-07-29T18:33:46.588671Z"}], "thread_id": "Thread-2", "execution_time": 0.02500295639038086, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.linkedin.linkedin_ads__url_report", "compiled": true, "compiled_code": "\n\nwith creative as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_linkedin_ads_source\".\"stg_linkedin_ads__creative_history\"\n where is_latest_version\n),\n\ncampaign as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_linkedin_ads_source\".\"stg_linkedin_ads__campaign_history\"\n where is_latest_version\n),\n\ncampaign_group as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_linkedin_ads_source\".\"stg_linkedin_ads__campaign_group_history\"\n where is_latest_version\n),\n\naccount as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_linkedin_ads_source\".\"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\".\"ad_reporting_docs_linkedin_ads_source\".\"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 , sum(coalesce(external_website_conversions, 0)) as external_website_conversions\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 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", "relation_name": "\"postgres\".\"ad_reporting_docs_linkedin_ads\".\"linkedin_ads__url_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.589298Z", "completed_at": "2024-07-29T18:33:46.600683Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.601130Z", "completed_at": "2024-07-29T18:33:46.601136Z"}], "thread_id": "Thread-3", "execution_time": 0.013737916946411133, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.linkedin_source.not_null_stg_linkedin_ads__creative_history_creative_id.4d51d55474", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect creative_id\nfrom \"postgres\".\"ad_reporting_docs_linkedin_ads_source\".\"stg_linkedin_ads__creative_history\"\nwhere creative_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.592888Z", "completed_at": "2024-07-29T18:33:46.600906Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.601682Z", "completed_at": "2024-07-29T18:33:46.601689Z"}], "thread_id": "Thread-1", "execution_time": 0.013736963272094727, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_microsoft_ads_source\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.596956Z", "completed_at": "2024-07-29T18:33:46.601483Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.602318Z", "completed_at": "2024-07-29T18:33:46.602322Z"}], "thread_id": "Thread-2", "execution_time": 0.006037712097167969, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.microsoft_ads_source.not_null_stg_microsoft_ads__ad_daily_report_ad_id.1ed6689aa8", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom \"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"stg_microsoft_ads__ad_daily_report\"\nwhere ad_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.665397Z", "completed_at": "2024-07-29T18:33:46.671646Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.671876Z", "completed_at": "2024-07-29T18:33:46.671883Z"}], "thread_id": "Thread-1", "execution_time": 0.06857609748840332, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__account_history_source_relation__account_id__modified_at.c32440cfcf", "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\".\"ad_reporting_docs_microsoft_ads_source\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.604217Z", "completed_at": "2024-07-29T18:33:46.676543Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.676752Z", "completed_at": "2024-07-29T18:33:46.676756Z"}], "thread_id": "Thread-3", "execution_time": 0.07390785217285156, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads.microsoft_ads__account_report", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"stg_microsoft_ads__account_daily_report\"\n\n), \n\naccounts as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"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\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", "relation_name": "\"postgres\".\"ad_reporting_docs_microsoft_ads\".\"microsoft_ads__account_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.668592Z", "completed_at": "2024-07-29T18:33:46.680571Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.680786Z", "completed_at": "2024-07-29T18:33:46.680790Z"}], "thread_id": "Thread-2", "execution_time": 0.07703685760498047, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.microsoft_ads_source.not_null_stg_microsoft_ads__account_history_account_id.cc273ee54e", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom \"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"stg_microsoft_ads__account_history\"\nwhere account_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:45.774946Z", "completed_at": "2024-07-29T18:33:46.587160Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.588244Z", "completed_at": "2024-07-29T18:33:46.588248Z"}], "thread_id": "Thread-4", "execution_time": 0.9071502685546875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.twitter_ads_source.stg_twitter_ads__tweet_url", "compiled": true, "compiled_code": "\n\nwith source as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"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", "relation_name": "\"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"stg_twitter_ads__tweet_url\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.672940Z", "completed_at": "2024-07-29T18:33:46.682404Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.683315Z", "completed_at": "2024-07-29T18:33:46.683319Z"}], "thread_id": "Thread-1", "execution_time": 0.010857820510864258, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_microsoft_ads_source\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.677729Z", "completed_at": "2024-07-29T18:33:46.682889Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.686673Z", "completed_at": "2024-07-29T18:33:46.686678Z"}], "thread_id": "Thread-3", "execution_time": 0.00941014289855957, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.microsoft_ads_source.not_null_stg_microsoft_ads__ad_group_history_ad_group_id.c8353342b7", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom \"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"stg_microsoft_ads__ad_group_history\"\nwhere ad_group_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.683661Z", "completed_at": "2024-07-29T18:33:46.691108Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.691803Z", "completed_at": "2024-07-29T18:33:46.691807Z"}], "thread_id": "Thread-2", "execution_time": 0.010061025619506836, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_microsoft_ads_source\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.687799Z", "completed_at": "2024-07-29T18:33:46.695860Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.699167Z", "completed_at": "2024-07-29T18:33:46.699172Z"}], "thread_id": "Thread-4", "execution_time": 0.016146183013916016, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.microsoft_ads_source.not_null_stg_microsoft_ads__ad_group_daily_report_ad_group_id.3e03e6eff7", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom \"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"stg_microsoft_ads__ad_group_daily_report\"\nwhere ad_group_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.692178Z", "completed_at": "2024-07-29T18:33:46.700358Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.703859Z", "completed_at": "2024-07-29T18:33:46.703864Z"}], "thread_id": "Thread-1", "execution_time": 0.013282060623168945, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__ad_history_source_relation__ad_id__modified_at.2eb6255160", "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\".\"ad_reporting_docs_microsoft_ads_source\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.696077Z", "completed_at": "2024-07-29T18:33:46.700553Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.704236Z", "completed_at": "2024-07-29T18:33:46.704240Z"}], "thread_id": "Thread-3", "execution_time": 0.013393878936767578, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.microsoft_ads_source.not_null_stg_microsoft_ads__ad_history_ad_id.6d02c26574", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom \"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"stg_microsoft_ads__ad_history\"\nwhere ad_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.700966Z", "completed_at": "2024-07-29T18:33:46.708722Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.709394Z", "completed_at": "2024-07-29T18:33:46.709399Z"}], "thread_id": "Thread-2", "execution_time": 0.009849071502685547, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__keyword_history_source_relation__keyword_id__modified_at.5b0ba5f522", "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\".\"ad_reporting_docs_microsoft_ads_source\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.705352Z", "completed_at": "2024-07-29T18:33:46.717097Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.717659Z", "completed_at": "2024-07-29T18:33:46.717664Z"}], "thread_id": "Thread-4", "execution_time": 0.016986846923828125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.microsoft_ads_source.not_null_stg_microsoft_ads__keyword_history_keyword_id.19164a6209", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect keyword_id\nfrom \"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"stg_microsoft_ads__keyword_history\"\nwhere keyword_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.709765Z", "completed_at": "2024-07-29T18:33:46.718532Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.719388Z", "completed_at": "2024-07-29T18:33:46.719392Z"}], "thread_id": "Thread-1", "execution_time": 0.01120901107788086, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_microsoft_ads_source\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.714377Z", "completed_at": "2024-07-29T18:33:46.718962Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.724130Z", "completed_at": "2024-07-29T18:33:46.724135Z"}], "thread_id": "Thread-3", "execution_time": 0.015690088272094727, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.microsoft_ads_source.not_null_stg_microsoft_ads__campaign_daily_report_campaign_id.8ac0418e84", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom \"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"stg_microsoft_ads__campaign_daily_report\"\nwhere campaign_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.719750Z", "completed_at": "2024-07-29T18:33:46.731038Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.742388Z", "completed_at": "2024-07-29T18:33:46.742394Z"}], "thread_id": "Thread-2", "execution_time": 0.02442479133605957, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads.microsoft_ads__ad_group_report", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"stg_microsoft_ads__ad_group_daily_report\"\n\n), \n\nad_groups as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"stg_microsoft_ads__ad_group_history\"\n where is_most_recent_record = True\n),\n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"stg_microsoft_ads__campaign_history\"\n where is_most_recent_record = True\n),\n\naccounts as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"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\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", "relation_name": "\"postgres\".\"ad_reporting_docs_microsoft_ads\".\"microsoft_ads__ad_group_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.725234Z", "completed_at": "2024-07-29T18:33:46.735890Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.748423Z", "completed_at": "2024-07-29T18:33:46.748429Z"}], "thread_id": "Thread-4", "execution_time": 0.02933192253112793, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads.microsoft_ads__ad_report", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"stg_microsoft_ads__ad_daily_report\"\n\n), \n\nads as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"stg_microsoft_ads__ad_history\"\n where is_most_recent_record = True\n\n), \n\nad_groups as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"stg_microsoft_ads__ad_group_history\"\n where is_most_recent_record = True\n\n), \n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"stg_microsoft_ads__campaign_history\"\n where is_most_recent_record = True\n\n), \n\naccounts as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"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\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", "relation_name": "\"postgres\".\"ad_reporting_docs_microsoft_ads\".\"microsoft_ads__ad_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.736102Z", "completed_at": "2024-07-29T18:33:46.750589Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.754654Z", "completed_at": "2024-07-29T18:33:46.754660Z"}], "thread_id": "Thread-3", "execution_time": 0.02437877655029297, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads.microsoft_ads__url_report", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"stg_microsoft_ads__ad_daily_report\"\n\n), \n\nads as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"stg_microsoft_ads__ad_history\"\n where is_most_recent_record = True\n\n), \n\nad_groups as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"stg_microsoft_ads__ad_group_history\"\n where is_most_recent_record = True\n\n), \n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"stg_microsoft_ads__campaign_history\"\n where is_most_recent_record = True\n\n), \n\naccounts as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"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\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", "relation_name": "\"postgres\".\"ad_reporting_docs_microsoft_ads\".\"microsoft_ads__url_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.731224Z", "completed_at": "2024-07-29T18:33:46.750985Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.758652Z", "completed_at": "2024-07-29T18:33:46.758660Z"}], "thread_id": "Thread-1", "execution_time": 0.028645753860473633, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads.microsoft_ads__campaign_report", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"stg_microsoft_ads__campaign_daily_report\"\n\n), \n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"stg_microsoft_ads__campaign_history\"\n where is_most_recent_record = True\n),\n\naccounts as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"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\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", "relation_name": "\"postgres\".\"ad_reporting_docs_microsoft_ads\".\"microsoft_ads__campaign_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.751183Z", "completed_at": "2024-07-29T18:33:46.760117Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.760959Z", "completed_at": "2024-07-29T18:33:46.760963Z"}], "thread_id": "Thread-2", "execution_time": 0.011219978332519531, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__campaign_history_source_relation__campaign_id__modified_at.56da51b12d", "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\".\"ad_reporting_docs_microsoft_ads_source\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.755049Z", "completed_at": "2024-07-29T18:33:46.760556Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.761543Z", "completed_at": "2024-07-29T18:33:46.761547Z"}], "thread_id": "Thread-4", "execution_time": 0.011486053466796875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.microsoft_ads_source.not_null_stg_microsoft_ads__campaign_history_campaign_id.ee080a2122", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom \"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"stg_microsoft_ads__campaign_history\"\nwhere campaign_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.767508Z", "completed_at": "2024-07-29T18:33:46.771837Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.780899Z", "completed_at": "2024-07-29T18:33:46.780905Z"}], "thread_id": "Thread-1", "execution_time": 0.020637035369873047, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_microsoft_ads_source\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.761920Z", "completed_at": "2024-07-29T18:33:46.772052Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.781313Z", "completed_at": "2024-07-29T18:33:46.781317Z"}], "thread_id": "Thread-3", "execution_time": 0.0215301513671875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads.microsoft_ads__keyword_report", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"stg_microsoft_ads__keyword_daily_report\"\n\n), \n\nkeywords as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"stg_microsoft_ads__keyword_history\"\n where is_most_recent_record = True\n),\n\nads as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"stg_microsoft_ads__ad_history\"\n where is_most_recent_record = True\n\n), \n\nad_groups as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"stg_microsoft_ads__ad_group_history\"\n where is_most_recent_record = True\n\n), \n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"stg_microsoft_ads__campaign_history\"\n where is_most_recent_record = True\n\n), \n\naccounts as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"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\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", "relation_name": "\"postgres\".\"ad_reporting_docs_microsoft_ads\".\"microsoft_ads__keyword_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.772249Z", "completed_at": "2024-07-29T18:33:46.782664Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.783482Z", "completed_at": "2024-07-29T18:33:46.783486Z"}], "thread_id": "Thread-2", "execution_time": 0.012681961059570312, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.microsoft_ads_source.not_null_stg_microsoft_ads__keyword_daily_report_keyword_id.e16b8c5047", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect keyword_id\nfrom \"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"stg_microsoft_ads__keyword_daily_report\"\nwhere keyword_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.775803Z", "completed_at": "2024-07-29T18:33:46.782869Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.783820Z", "completed_at": "2024-07-29T18:33:46.783823Z"}], "thread_id": "Thread-4", "execution_time": 0.012717962265014648, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads.microsoft_ads__search_report", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"stg_microsoft_ads__search_daily_report\"\n\n), \n\nkeywords as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"stg_microsoft_ads__keyword_history\"\n where is_most_recent_record = True\n),\n\nads as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"stg_microsoft_ads__ad_history\"\n where is_most_recent_record = True\n\n), \n\nad_groups as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"stg_microsoft_ads__ad_group_history\"\n where is_most_recent_record = True\n\n), \n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"stg_microsoft_ads__campaign_history\"\n where is_most_recent_record = True\n\n), \n\naccounts as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"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\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", "relation_name": "\"postgres\".\"ad_reporting_docs_microsoft_ads\".\"microsoft_ads__search_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.784370Z", "completed_at": "2024-07-29T18:33:46.791997Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.796151Z", "completed_at": "2024-07-29T18:33:46.796157Z"}], "thread_id": "Thread-1", "execution_time": 0.01380777359008789, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_microsoft_ads_source\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.788259Z", "completed_at": "2024-07-29T18:33:46.799349Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.799917Z", "completed_at": "2024-07-29T18:33:46.799922Z"}], "thread_id": "Thread-3", "execution_time": 0.016933202743530273, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.microsoft_ads_source.not_null_stg_microsoft_ads__search_daily_report_search_query.57f687adcc", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect search_query\nfrom \"postgres\".\"ad_reporting_docs_microsoft_ads_source\".\"stg_microsoft_ads__search_daily_report\"\nwhere search_query is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.796557Z", "completed_at": "2024-07-29T18:33:46.800881Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.801718Z", "completed_at": "2024-07-29T18:33:46.801722Z"}], "thread_id": "Thread-4", "execution_time": 0.01029205322265625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__ad_group_history_ad_group_id.220c6220be", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom \"postgres\".\"ad_reporting_docs_pinterest_source\".\"stg_pinterest_ads__ad_group_history\"\nwhere ad_group_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.792402Z", "completed_at": "2024-07-29T18:33:46.801514Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.805485Z", "completed_at": "2024-07-29T18:33:46.805489Z"}], "thread_id": "Thread-2", "execution_time": 0.014335870742797852, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_pinterest_source\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.802052Z", "completed_at": "2024-07-29T18:33:46.809778Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.810381Z", "completed_at": "2024-07-29T18:33:46.810385Z"}], "thread_id": "Thread-1", "execution_time": 0.010123729705810547, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_pinterest_source\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.806138Z", "completed_at": "2024-07-29T18:33:46.814322Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.817731Z", "completed_at": "2024-07-29T18:33:46.817737Z"}], "thread_id": "Thread-3", "execution_time": 0.016499042510986328, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__ad_group_report_ad_group_id.bb8cf3c471", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom \"postgres\".\"ad_reporting_docs_pinterest_source\".\"stg_pinterest_ads__ad_group_report\"\nwhere ad_group_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.810746Z", "completed_at": "2024-07-29T18:33:46.818860Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.822298Z", "completed_at": "2024-07-29T18:33:46.822303Z"}], "thread_id": "Thread-4", "execution_time": 0.01312112808227539, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__ad_group_report_date_day.80e8904c4c", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_docs_pinterest_source\".\"stg_pinterest_ads__ad_group_report\"\nwhere date_day is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.814536Z", "completed_at": "2024-07-29T18:33:46.819051Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.822664Z", "completed_at": "2024-07-29T18:33:46.822668Z"}], "thread_id": "Thread-2", "execution_time": 0.013180017471313477, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__advertiser_history_source_relation__updated_at__advertiser_id.8308a26e9f", "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\".\"ad_reporting_docs_pinterest_source\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.819462Z", "completed_at": "2024-07-29T18:33:46.827532Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.828271Z", "completed_at": "2024-07-29T18:33:46.828276Z"}], "thread_id": "Thread-1", "execution_time": 0.010179996490478516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__advertiser_history_advertiser_id.7d24f665fb", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect advertiser_id\nfrom \"postgres\".\"ad_reporting_docs_pinterest_source\".\"stg_pinterest_ads__advertiser_history\"\nwhere advertiser_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.823768Z", "completed_at": "2024-07-29T18:33:46.832826Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.836086Z", "completed_at": "2024-07-29T18:33:46.836093Z"}], "thread_id": "Thread-3", "execution_time": 0.016906261444091797, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest.pinterest_ads__advertiser_report", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_pinterest_source\".\"stg_pinterest_ads__advertiser_report\"\n), \n\nadvertisers as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_pinterest_source\".\"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\n \n\n\n\n\n\n from report\n left join advertisers\n on report.advertiser_id = advertisers.advertiser_id\n and report.source_relation = advertisers.source_relation\n group by 1,2,3,4,5,6\n)\n\nselect *\nfrom fields", "relation_name": "\"postgres\".\"ad_reporting_docs_pinterest\".\"pinterest_ads__advertiser_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.828833Z", "completed_at": "2024-07-29T18:33:46.836703Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.840226Z", "completed_at": "2024-07-29T18:33:46.840230Z"}], "thread_id": "Thread-4", "execution_time": 0.012976884841918945, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__advertiser_report_source_relation__date_day__advertiser_id.cadbd5fae2", "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\".\"ad_reporting_docs_pinterest_source\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.833011Z", "completed_at": "2024-07-29T18:33:46.839921Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.840850Z", "completed_at": "2024-07-29T18:33:46.840854Z"}], "thread_id": "Thread-2", "execution_time": 0.013091087341308594, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__advertiser_report_advertiser_id.1b16ed73ff", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect advertiser_id\nfrom \"postgres\".\"ad_reporting_docs_pinterest_source\".\"stg_pinterest_ads__advertiser_report\"\nwhere advertiser_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.837138Z", "completed_at": "2024-07-29T18:33:46.841675Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.846706Z", "completed_at": "2024-07-29T18:33:46.846711Z"}], "thread_id": "Thread-1", "execution_time": 0.010937929153442383, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__advertiser_report_date_day.153bd03c95", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_docs_pinterest_source\".\"stg_pinterest_ads__advertiser_report\"\nwhere date_day is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.842345Z", "completed_at": "2024-07-29T18:33:46.852110Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.855369Z", "completed_at": "2024-07-29T18:33:46.855374Z"}], "thread_id": "Thread-3", "execution_time": 0.014843940734863281, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest.pinterest_ads__ad_group_report", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_pinterest_source\".\"stg_pinterest_ads__ad_group_report\"\n), \n\nadvertisers as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_pinterest_source\".\"stg_pinterest_ads__advertiser_history\"\n where is_most_recent_record = True\n), \n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_pinterest_source\".\"stg_pinterest_ads__campaign_history\"\n where is_most_recent_record = True\n),\n\nad_groups as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_pinterest_source\".\"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\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", "relation_name": "\"postgres\".\"ad_reporting_docs_pinterest\".\"pinterest_ads__ad_group_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.848021Z", "completed_at": "2024-07-29T18:33:46.858743Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.859581Z", "completed_at": "2024-07-29T18:33:46.859586Z"}], "thread_id": "Thread-4", "execution_time": 0.01753067970275879, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__campaign_history_source_relation__campaign_id___fivetran_synced.84df0386bc", "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\".\"ad_reporting_docs_pinterest_source\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.852301Z", "completed_at": "2024-07-29T18:33:46.859385Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.860233Z", "completed_at": "2024-07-29T18:33:46.860236Z"}], "thread_id": "Thread-2", "execution_time": 0.013206005096435547, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__campaign_history_campaign_id.60cb10d341", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom \"postgres\".\"ad_reporting_docs_pinterest_source\".\"stg_pinterest_ads__campaign_history\"\nwhere campaign_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.855780Z", "completed_at": "2024-07-29T18:33:46.860575Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.861474Z", "completed_at": "2024-07-29T18:33:46.861479Z"}], "thread_id": "Thread-1", "execution_time": 0.009676218032836914, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_pinterest_source\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.862056Z", "completed_at": "2024-07-29T18:33:46.873726Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.874208Z", "completed_at": "2024-07-29T18:33:46.874214Z"}], "thread_id": "Thread-3", "execution_time": 0.014290094375610352, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__keyword_history_keyword_id.246889377a", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect keyword_id\nfrom \"postgres\".\"ad_reporting_docs_pinterest_source\".\"stg_pinterest_ads__keyword_history\"\nwhere keyword_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.866844Z", "completed_at": "2024-07-29T18:33:46.877737Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.878441Z", "completed_at": "2024-07-29T18:33:46.878445Z"}], "thread_id": "Thread-4", "execution_time": 0.01666712760925293, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest.pinterest_ads__campaign_report", "compiled": true, "compiled_code": "\n\nwith report as (\n select *\n from \"postgres\".\"ad_reporting_docs_pinterest_source\".\"stg_pinterest_ads__campaign_report\"\n),\n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_pinterest_source\".\"stg_pinterest_ads__campaign_history\"\n where is_most_recent_record = True\n),\n\nadvertisers as (\n select *\n from \"postgres\".\"ad_reporting_docs_pinterest_source\".\"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\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", "relation_name": "\"postgres\".\"ad_reporting_docs_pinterest\".\"pinterest_ads__campaign_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.870755Z", "completed_at": "2024-07-29T18:33:46.877947Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.878802Z", "completed_at": "2024-07-29T18:33:46.878806Z"}], "thread_id": "Thread-2", "execution_time": 0.01320505142211914, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_pinterest_source\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.874595Z", "completed_at": "2024-07-29T18:33:46.879162Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.880115Z", "completed_at": "2024-07-29T18:33:46.880118Z"}], "thread_id": "Thread-1", "execution_time": 0.013571739196777344, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__campaign_report_campaign_id.a287eba0fc", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom \"postgres\".\"ad_reporting_docs_pinterest_source\".\"stg_pinterest_ads__campaign_report\"\nwhere campaign_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.880443Z", "completed_at": "2024-07-29T18:33:46.885488Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.894083Z", "completed_at": "2024-07-29T18:33:46.894089Z"}], "thread_id": "Thread-3", "execution_time": 0.015964984893798828, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__campaign_report_date_day.7ef5fb1238", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_docs_pinterest_source\".\"stg_pinterest_ads__campaign_report\"\nwhere date_day is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.885677Z", "completed_at": "2024-07-29T18:33:46.897783Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.898484Z", "completed_at": "2024-07-29T18:33:46.898489Z"}], "thread_id": "Thread-4", "execution_time": 0.014484882354736328, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest.pinterest_ads__keyword_report", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_pinterest_source\".\"stg_pinterest_ads__keyword_report\"\n), \n\nadvertisers as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_pinterest_source\".\"stg_pinterest_ads__advertiser_history\"\n where is_most_recent_record = True\n),\n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_pinterest_source\".\"stg_pinterest_ads__campaign_history\"\n where is_most_recent_record = True\n), \n\nad_groups as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_pinterest_source\".\"stg_pinterest_ads__ad_group_history\"\n where is_most_recent_record = True\n), \n\nkeywords as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_pinterest_source\".\"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\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", "relation_name": "\"postgres\".\"ad_reporting_docs_pinterest\".\"pinterest_ads__keyword_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.890635Z", "completed_at": "2024-07-29T18:33:46.897995Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.899059Z", "completed_at": "2024-07-29T18:33:46.899063Z"}], "thread_id": "Thread-2", "execution_time": 0.014819145202636719, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_pinterest_source\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.894528Z", "completed_at": "2024-07-29T18:33:46.898853Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.899924Z", "completed_at": "2024-07-29T18:33:46.899927Z"}], "thread_id": "Thread-1", "execution_time": 0.014719963073730469, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__keyword_report_date_day.9937216300", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_docs_pinterest_source\".\"stg_pinterest_ads__keyword_report\"\nwhere date_day is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.900503Z", "completed_at": "2024-07-29T18:33:46.908537Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.911863Z", "completed_at": "2024-07-29T18:33:46.911868Z"}], "thread_id": "Thread-3", "execution_time": 0.013715267181396484, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__keyword_report_keyword_id.5f00679c48", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect keyword_id\nfrom \"postgres\".\"ad_reporting_docs_pinterest_source\".\"stg_pinterest_ads__keyword_report\"\nwhere keyword_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.905621Z", "completed_at": "2024-07-29T18:33:46.915986Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.920220Z", "completed_at": "2024-07-29T18:33:46.920225Z"}], "thread_id": "Thread-4", "execution_time": 0.016084909439086914, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__account_report_source_relation__account_id__date_day.580653f488", "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\".\"ad_reporting_docs_reddit_ads_source\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.908954Z", "completed_at": "2024-07-29T18:33:46.916204Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.920819Z", "completed_at": "2024-07-29T18:33:46.920824Z"}], "thread_id": "Thread-2", "execution_time": 0.01618194580078125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.reddit_ads_source.not_null_stg_reddit_ads__account_report_account_id.1f2a0195de", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom \"postgres\".\"ad_reporting_docs_reddit_ads_source\".\"stg_reddit_ads__account_report\"\nwhere account_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.912253Z", "completed_at": "2024-07-29T18:33:46.920616Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.921481Z", "completed_at": "2024-07-29T18:33:46.921485Z"}], "thread_id": "Thread-1", "execution_time": 0.016360044479370117, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_pinterest_source\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.916402Z", "completed_at": "2024-07-29T18:33:46.922344Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.923199Z", "completed_at": "2024-07-29T18:33:46.923203Z"}], "thread_id": "Thread-3", "execution_time": 0.007719993591308594, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__pin_promotion_history_pin_promotion_id.171995cd34", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect pin_promotion_id\nfrom \"postgres\".\"ad_reporting_docs_pinterest_source\".\"stg_pinterest_ads__pin_promotion_history\"\nwhere pin_promotion_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.923952Z", "completed_at": "2024-07-29T18:33:46.938309Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.938956Z", "completed_at": "2024-07-29T18:33:46.938962Z"}], "thread_id": "Thread-4", "execution_time": 0.016907691955566406, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest.pinterest_ads__pin_promotion_report", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_pinterest_source\".\"stg_pinterest_ads__pin_promotion_report\"\n), \n\npins as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_pinterest_source\".\"stg_pinterest_ads__pin_promotion_history\"\n where is_most_recent_record = True\n), \n\nad_groups as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_pinterest_source\".\"stg_pinterest_ads__ad_group_history\"\n where is_most_recent_record = True\n), \n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_pinterest_source\".\"stg_pinterest_ads__campaign_history\"\n where is_most_recent_record = True\n),\n\nadvertisers as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_pinterest_source\".\"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.clicks) as clicks,\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 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", "relation_name": "\"postgres\".\"ad_reporting_docs_pinterest\".\"pinterest_ads__pin_promotion_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.929162Z", "completed_at": "2024-07-29T18:33:46.938759Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.942460Z", "completed_at": "2024-07-29T18:33:46.942464Z"}], "thread_id": "Thread-2", "execution_time": 0.019730091094970703, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest.pinterest_ads__url_report", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_pinterest_source\".\"stg_pinterest_ads__pin_promotion_report\"\n), \n\npins as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_pinterest_source\".\"stg_pinterest_ads__pin_promotion_history\"\n where is_most_recent_record = True\n), \n\nad_groups as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_pinterest_source\".\"stg_pinterest_ads__ad_group_history\"\n where is_most_recent_record = True\n), \n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_pinterest_source\".\"stg_pinterest_ads__campaign_history\"\n where is_most_recent_record = True\n),\n\nadvertisers as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_pinterest_source\".\"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.clicks) as clicks,\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 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", "relation_name": "\"postgres\".\"ad_reporting_docs_pinterest\".\"pinterest_ads__url_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.934557Z", "completed_at": "2024-07-29T18:33:46.942248Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.943171Z", "completed_at": "2024-07-29T18:33:46.943175Z"}], "thread_id": "Thread-1", "execution_time": 0.0196988582611084, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_pinterest_source\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.939338Z", "completed_at": "2024-07-29T18:33:46.944046Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.944947Z", "completed_at": "2024-07-29T18:33:46.944950Z"}], "thread_id": "Thread-3", "execution_time": 0.01070713996887207, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__pin_promotion_report_date_day.ed272212a1", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_docs_pinterest_source\".\"stg_pinterest_ads__pin_promotion_report\"\nwhere date_day is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.945695Z", "completed_at": "2024-07-29T18:33:46.959796Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.959999Z", "completed_at": "2024-07-29T18:33:46.960005Z"}], "thread_id": "Thread-4", "execution_time": 0.016304969787597656, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__pin_promotion_report_pin_promotion_id.9c3c9f71ab", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect pin_promotion_id\nfrom \"postgres\".\"ad_reporting_docs_pinterest_source\".\"stg_pinterest_ads__pin_promotion_report\"\nwhere pin_promotion_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.952953Z", "completed_at": "2024-07-29T18:33:46.964023Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.964449Z", "completed_at": "2024-07-29T18:33:46.964454Z"}], "thread_id": "Thread-1", "execution_time": 0.01923394203186035, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__account_source_relation__account_id.49d95e2890", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, account_id\n from \"postgres\".\"ad_reporting_docs_reddit_ads_source\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.949155Z", "completed_at": "2024-07-29T18:33:46.964225Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.964831Z", "completed_at": "2024-07-29T18:33:46.964835Z"}], "thread_id": "Thread-2", "execution_time": 0.020409107208251953, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.reddit_ads.reddit_ads__account_report", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_reddit_ads_source\".\"stg_reddit_ads__account_report\"\n), \n\naccounts as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_reddit_ads_source\".\"stg_reddit_ads__account\"\n)\n\n, joined 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\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\n)\n\nselect *\nfrom joined", "relation_name": "\"postgres\".\"ad_reporting_docs_reddit_ads\".\"reddit_ads__account_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.956984Z", "completed_at": "2024-07-29T18:33:46.965454Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.966463Z", "completed_at": "2024-07-29T18:33:46.966466Z"}], "thread_id": "Thread-3", "execution_time": 0.013850212097167969, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.reddit_ads_source.not_null_stg_reddit_ads__account_account_id.512f0b8078", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom \"postgres\".\"ad_reporting_docs_reddit_ads_source\".\"stg_reddit_ads__account\"\nwhere account_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.961039Z", "completed_at": "2024-07-29T18:33:46.965659Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.966802Z", "completed_at": "2024-07-29T18:33:46.966805Z"}], "thread_id": "Thread-4", "execution_time": 0.0062713623046875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_group_source_relation__ad_group_id.942cb72fcc", "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\".\"ad_reporting_docs_reddit_ads_source\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.968223Z", "completed_at": "2024-07-29T18:33:46.981444Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.981980Z", "completed_at": "2024-07-29T18:33:46.981986Z"}], "thread_id": "Thread-1", "execution_time": 0.015879154205322266, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.reddit_ads_source.not_null_stg_reddit_ads__ad_group_ad_group_id.65795d8dc2", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom \"postgres\".\"ad_reporting_docs_reddit_ads_source\".\"stg_reddit_ads__ad_group\"\nwhere ad_group_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.971578Z", "completed_at": "2024-07-29T18:33:46.981741Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.982390Z", "completed_at": "2024-07-29T18:33:46.982394Z"}], "thread_id": "Thread-2", "execution_time": 0.015306949615478516, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_reddit_ads_source\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.975761Z", "completed_at": "2024-07-29T18:33:46.982755Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.983630Z", "completed_at": "2024-07-29T18:33:46.983633Z"}], "thread_id": "Thread-3", "execution_time": 0.012590885162353516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.reddit_ads_source.not_null_stg_reddit_ads__ad_group_report_ad_group_id.9836cd084d", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom \"postgres\".\"ad_reporting_docs_reddit_ads_source\".\"stg_reddit_ads__ad_group_report\"\nwhere ad_group_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.978625Z", "completed_at": "2024-07-29T18:33:46.983168Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.984192Z", "completed_at": "2024-07-29T18:33:46.984195Z"}], "thread_id": "Thread-4", "execution_time": 0.012903928756713867, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_report_source_relation__ad_id__date_day.395db62865", "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\".\"ad_reporting_docs_reddit_ads_source\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.985807Z", "completed_at": "2024-07-29T18:33:46.998642Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.999158Z", "completed_at": "2024-07-29T18:33:46.999164Z"}], "thread_id": "Thread-1", "execution_time": 0.015262842178344727, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.reddit_ads_source.not_null_stg_reddit_ads__ad_report_ad_id.c4af84b857", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom \"postgres\".\"ad_reporting_docs_reddit_ads_source\".\"stg_reddit_ads__ad_report\"\nwhere ad_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.988939Z", "completed_at": "2024-07-29T18:33:46.998905Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:46.999543Z", "completed_at": "2024-07-29T18:33:46.999547Z"}], "thread_id": "Thread-2", "execution_time": 0.015074014663696289, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_source_relation__ad_id.fc4d1b788b", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, ad_id\n from \"postgres\".\"ad_reporting_docs_reddit_ads_source\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.993096Z", "completed_at": "2024-07-29T18:33:47.000163Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.001042Z", "completed_at": "2024-07-29T18:33:47.001045Z"}], "thread_id": "Thread-3", "execution_time": 0.015496969223022461, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.reddit_ads_source.not_null_stg_reddit_ads__ad_ad_id.40188b63dd", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom \"postgres\".\"ad_reporting_docs_reddit_ads_source\".\"stg_reddit_ads__ad\"\nwhere ad_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:46.995862Z", "completed_at": "2024-07-29T18:33:47.000578Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.001672Z", "completed_at": "2024-07-29T18:33:47.001676Z"}], "thread_id": "Thread-4", "execution_time": 0.013026714324951172, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__campaign_report_source_relation__campaign_id__date_day.5e87d9d722", "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\".\"ad_reporting_docs_reddit_ads_source\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.002861Z", "completed_at": "2024-07-29T18:33:47.017132Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.021617Z", "completed_at": "2024-07-29T18:33:47.021624Z"}], "thread_id": "Thread-1", "execution_time": 0.020880937576293945, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.reddit_ads_source.not_null_stg_reddit_ads__campaign_report_campaign_id.c717612b4f", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom \"postgres\".\"ad_reporting_docs_reddit_ads_source\".\"stg_reddit_ads__campaign_report\"\nwhere campaign_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.006011Z", "completed_at": "2024-07-29T18:33:47.021377Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.022070Z", "completed_at": "2024-07-29T18:33:47.022074Z"}], "thread_id": "Thread-2", "execution_time": 0.020750999450683594, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.reddit_ads.reddit_ads__ad_group_report", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_reddit_ads_source\".\"stg_reddit_ads__ad_group_report\"\n),\n\nad_groups as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_reddit_ads_source\".\"stg_reddit_ads__ad_group\"\n),\n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_reddit_ads_source\".\"stg_reddit_ads__campaign\"\n),\n\naccounts as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_reddit_ads_source\".\"stg_reddit_ads__account\"\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\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 group by 1,2,3,4,5,6,7,8\n)\n\nselect *\nfrom joined", "relation_name": "\"postgres\".\"ad_reporting_docs_reddit_ads\".\"reddit_ads__ad_group_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.012263Z", "completed_at": "2024-07-29T18:33:47.022714Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.023682Z", "completed_at": "2024-07-29T18:33:47.023686Z"}], "thread_id": "Thread-3", "execution_time": 0.017969846725463867, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.reddit_ads.reddit_ads__ad_report", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_reddit_ads_source\".\"stg_reddit_ads__ad_report\"\n),\n\nads as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_reddit_ads_source\".\"stg_reddit_ads__ad\"\n), \n\nad_groups as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_reddit_ads_source\".\"stg_reddit_ads__ad_group\"\n),\n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_reddit_ads_source\".\"stg_reddit_ads__campaign\"\n),\n\naccounts as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_reddit_ads_source\".\"stg_reddit_ads__account\"\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\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 group by 1,2,3,4,5,6,7,8,9,10,11\n\n)\n\nselect *\nfrom joined", "relation_name": "\"postgres\".\"ad_reporting_docs_reddit_ads\".\"reddit_ads__ad_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.017351Z", "completed_at": "2024-07-29T18:33:47.023198Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.024281Z", "completed_at": "2024-07-29T18:33:47.024285Z"}], "thread_id": "Thread-4", "execution_time": 0.012877702713012695, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.reddit_ads.reddit_ads__campaign_report", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_reddit_ads_source\".\"stg_reddit_ads__campaign_report\"\n),\n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_reddit_ads_source\".\"stg_reddit_ads__campaign\"\n),\n\naccounts as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_reddit_ads_source\".\"stg_reddit_ads__account\"\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\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\n)\n\nselect *\nfrom joined", "relation_name": "\"postgres\".\"ad_reporting_docs_reddit_ads\".\"reddit_ads__campaign_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.037495Z", "completed_at": "2024-07-29T18:33:47.047902Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.048411Z", "completed_at": "2024-07-29T18:33:47.048417Z"}], "thread_id": "Thread-2", "execution_time": 0.02443218231201172, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__campaign_source_relation__campaign_id.066d3b93f4", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, campaign_id\n from \"postgres\".\"ad_reporting_docs_reddit_ads_source\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.025548Z", "completed_at": "2024-07-29T18:33:47.048130Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.048816Z", "completed_at": "2024-07-29T18:33:47.048819Z"}], "thread_id": "Thread-1", "execution_time": 0.025484800338745117, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.reddit_ads.reddit_ads__url_report", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_reddit_ads_source\".\"stg_reddit_ads__ad_report\"\n),\n\nads as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_reddit_ads_source\".\"stg_reddit_ads__ad\"\n),\n\nad_groups as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_reddit_ads_source\".\"stg_reddit_ads__ad_group\"\n), \n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_reddit_ads_source\".\"stg_reddit_ads__campaign\"\n), \n\naccounts as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_reddit_ads_source\".\"stg_reddit_ads__account\"\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\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 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", "relation_name": "\"postgres\".\"ad_reporting_docs_reddit_ads\".\"reddit_ads__url_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.041177Z", "completed_at": "2024-07-29T18:33:47.049753Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.050701Z", "completed_at": "2024-07-29T18:33:47.050704Z"}], "thread_id": "Thread-3", "execution_time": 0.013498306274414062, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.reddit_ads_source.not_null_stg_reddit_ads__campaign_campaign_id.f3f24e4682", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom \"postgres\".\"ad_reporting_docs_reddit_ads_source\".\"stg_reddit_ads__campaign\"\nwhere campaign_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.044045Z", "completed_at": "2024-07-29T18:33:47.050493Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.051428Z", "completed_at": "2024-07-29T18:33:47.051430Z"}], "thread_id": "Thread-4", "execution_time": 0.01105499267578125, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_snapchat_ads_source\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.052003Z", "completed_at": "2024-07-29T18:33:47.062137Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.066120Z", "completed_at": "2024-07-29T18:33:47.066125Z"}], "thread_id": "Thread-2", "execution_time": 0.01616215705871582, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_account_history__fivetran_synced.2d5dd77824", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect _fivetran_synced\nfrom \"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"stg_snapchat_ads__ad_account_history\"\nwhere _fivetran_synced is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.054909Z", "completed_at": "2024-07-29T18:33:47.062338Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.066521Z", "completed_at": "2024-07-29T18:33:47.066525Z"}], "thread_id": "Thread-1", "execution_time": 0.01630401611328125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_account_history_ad_account_id.426d71d605", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_account_id\nfrom \"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"stg_snapchat_ads__ad_account_history\"\nwhere ad_account_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.058922Z", "completed_at": "2024-07-29T18:33:47.067245Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.068105Z", "completed_at": "2024-07-29T18:33:47.068108Z"}], "thread_id": "Thread-3", "execution_time": 0.010244131088256836, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_snapchat_ads_source\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.062533Z", "completed_at": "2024-07-29T18:33:47.067896Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.068871Z", "completed_at": "2024-07-29T18:33:47.068874Z"}], "thread_id": "Thread-4", "execution_time": 0.010685920715332031, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_hourly_report_ad_id.7e763de19d", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom \"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"stg_snapchat_ads__ad_hourly_report\"\nwhere ad_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.069612Z", "completed_at": "2024-07-29T18:33:47.076397Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.079658Z", "completed_at": "2024-07-29T18:33:47.079662Z"}], "thread_id": "Thread-2", "execution_time": 0.012037992477416992, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_hourly_report_date_hour.666cda1cd7", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_hour\nfrom \"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"stg_snapchat_ads__ad_hourly_report\"\nwhere date_hour is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.072987Z", "completed_at": "2024-07-29T18:33:47.080058Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.084128Z", "completed_at": "2024-07-29T18:33:47.084132Z"}], "thread_id": "Thread-1", "execution_time": 0.015743017196655273, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_history_source_relation__ad_id___fivetran_synced.630e3ffee4", "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\".\"ad_reporting_docs_snapchat_ads_source\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.076816Z", "completed_at": "2024-07-29T18:33:47.084780Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.086123Z", "completed_at": "2024-07-29T18:33:47.086126Z"}], "thread_id": "Thread-3", "execution_time": 0.013421058654785156, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_history__fivetran_synced.1607c70fda", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect _fivetran_synced\nfrom \"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"stg_snapchat_ads__ad_history\"\nwhere _fivetran_synced is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.080255Z", "completed_at": "2024-07-29T18:33:47.085725Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.086680Z", "completed_at": "2024-07-29T18:33:47.086684Z"}], "thread_id": "Thread-4", "execution_time": 0.010818719863891602, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_history_ad_id.e9d367fd15", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom \"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"stg_snapchat_ads__ad_history\"\nwhere ad_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.087024Z", "completed_at": "2024-07-29T18:33:47.094607Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.097826Z", "completed_at": "2024-07-29T18:33:47.097831Z"}], "thread_id": "Thread-2", "execution_time": 0.013330936431884766, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_snapchat_ads_source\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.091261Z", "completed_at": "2024-07-29T18:33:47.155809Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.160432Z", "completed_at": "2024-07-29T18:33:47.160438Z"}], "thread_id": "Thread-1", "execution_time": 0.07406115531921387, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_squad_history__fivetran_synced.7ed7d105ae", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect _fivetran_synced\nfrom \"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"stg_snapchat_ads__ad_squad_history\"\nwhere _fivetran_synced is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.095027Z", "completed_at": "2024-07-29T18:33:47.161872Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.165486Z", "completed_at": "2024-07-29T18:33:47.165491Z"}], "thread_id": "Thread-3", "execution_time": 0.07451510429382324, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_squad_history_ad_squad_id.71c7122278", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_squad_id\nfrom \"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"stg_snapchat_ads__ad_squad_history\"\nwhere ad_squad_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.098199Z", "completed_at": "2024-07-29T18:33:47.165293Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.168694Z", "completed_at": "2024-07-29T18:33:47.168699Z"}], "thread_id": "Thread-4", "execution_time": 0.07465195655822754, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snapchat_ads.snapchat_ads__account_report", "compiled": true, "compiled_code": "\n\nwith ad_hourly as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"stg_snapchat_ads__ad_hourly_report\"\n\n), account as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"stg_snapchat_ads__ad_account_history\"\n where is_most_recent_record = true\n\n), ads as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"stg_snapchat_ads__ad_history\"\n where is_most_recent_record = true\n\n), ad_squads as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"stg_snapchat_ads__ad_squad_history\"\n where is_most_recent_record = true\n\n), campaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"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\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", "relation_name": "\"postgres\".\"ad_reporting_docs_snapchat_ads\".\"snapchat_ads__account_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.162072Z", "completed_at": "2024-07-29T18:33:47.169317Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.170318Z", "completed_at": "2024-07-29T18:33:47.170322Z"}], "thread_id": "Thread-2", "execution_time": 0.009521007537841797, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__campaign_history_source_relation__campaign_id___fivetran_synced.e003c1a660", "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\".\"ad_reporting_docs_snapchat_ads_source\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.165874Z", "completed_at": "2024-07-29T18:33:47.170123Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.171080Z", "completed_at": "2024-07-29T18:33:47.171083Z"}], "thread_id": "Thread-1", "execution_time": 0.009472846984863281, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__campaign_history__fivetran_synced.55bc48b3ec", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect _fivetran_synced\nfrom \"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"stg_snapchat_ads__campaign_history\"\nwhere _fivetran_synced is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.171870Z", "completed_at": "2024-07-29T18:33:47.184095Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.187370Z", "completed_at": "2024-07-29T18:33:47.187376Z"}], "thread_id": "Thread-3", "execution_time": 0.017660140991210938, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__campaign_history_campaign_id.f74a0fb8c0", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom \"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"stg_snapchat_ads__campaign_history\"\nwhere campaign_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.175288Z", "completed_at": "2024-07-29T18:33:47.187144Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.187791Z", "completed_at": "2024-07-29T18:33:47.187795Z"}], "thread_id": "Thread-4", "execution_time": 0.01717209815979004, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snapchat_ads.snapchat_ads__ad_squad_report", "compiled": true, "compiled_code": "\n\nwith ad_squad_hourly as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"stg_snapchat_ads__ad_squad_hourly_report\"\n\n), account as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"stg_snapchat_ads__ad_account_history\"\n where is_most_recent_record = true\n\n), ad_squads as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"stg_snapchat_ads__ad_squad_history\"\n where is_most_recent_record = true\n\n), campaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"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 \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", "relation_name": "\"postgres\".\"ad_reporting_docs_snapchat_ads\".\"snapchat_ads__ad_squad_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.184312Z", "completed_at": "2024-07-29T18:33:47.188672Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.189626Z", "completed_at": "2024-07-29T18:33:47.189629Z"}], "thread_id": "Thread-1", "execution_time": 0.009267807006835938, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_squad_hourly_report_ad_squad_id.ab16aa72c9", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_squad_id\nfrom \"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"stg_snapchat_ads__ad_squad_hourly_report\"\nwhere ad_squad_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.181132Z", "completed_at": "2024-07-29T18:33:47.188881Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.189962Z", "completed_at": "2024-07-29T18:33:47.189965Z"}], "thread_id": "Thread-2", "execution_time": 0.014965057373046875, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_snapchat_ads_source\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.194052Z", "completed_at": "2024-07-29T18:33:47.202752Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.205949Z", "completed_at": "2024-07-29T18:33:47.205955Z"}], "thread_id": "Thread-4", "execution_time": 0.01661205291748047, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snapchat_ads.snapchat_ads__campaign_report", "compiled": true, "compiled_code": "\n\nwith campaign_hourly as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"stg_snapchat_ads__campaign_hourly_report\"\n\n), account as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"stg_snapchat_ads__ad_account_history\"\n where is_most_recent_record = true\n\n), campaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"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 \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", "relation_name": "\"postgres\".\"ad_reporting_docs_snapchat_ads\".\"snapchat_ads__campaign_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.191176Z", "completed_at": "2024-07-29T18:33:47.202948Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.206335Z", "completed_at": "2024-07-29T18:33:47.206339Z"}], "thread_id": "Thread-3", "execution_time": 0.017309904098510742, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_squad_hourly_report_date_hour.6f0b63a9cb", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_hour\nfrom \"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"stg_snapchat_ads__ad_squad_hourly_report\"\nwhere date_hour is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.199826Z", "completed_at": "2024-07-29T18:33:47.207046Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.207974Z", "completed_at": "2024-07-29T18:33:47.207977Z"}], "thread_id": "Thread-1", "execution_time": 0.009237051010131836, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_snapchat_ads_source\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.203149Z", "completed_at": "2024-07-29T18:33:47.207530Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.208533Z", "completed_at": "2024-07-29T18:33:47.208536Z"}], "thread_id": "Thread-2", "execution_time": 0.00954127311706543, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__campaign_hourly_report_campaign_id.f255c38a3e", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom \"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"stg_snapchat_ads__campaign_hourly_report\"\nwhere campaign_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.209708Z", "completed_at": "2024-07-29T18:33:47.222835Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.223288Z", "completed_at": "2024-07-29T18:33:47.223294Z"}], "thread_id": "Thread-4", "execution_time": 0.015619039535522461, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__campaign_hourly_report_date_hour.0bc4218ac8", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_hour\nfrom \"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"stg_snapchat_ads__campaign_hourly_report\"\nwhere date_hour is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.213549Z", "completed_at": "2024-07-29T18:33:47.223072Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.223863Z", "completed_at": "2024-07-29T18:33:47.223866Z"}], "thread_id": "Thread-3", "execution_time": 0.015609025955200195, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__creative_history_source_relation__creative_id___fivetran_synced.1d4efdd418", "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\".\"ad_reporting_docs_snapchat_ads_source\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.217221Z", "completed_at": "2024-07-29T18:33:47.223682Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.224606Z", "completed_at": "2024-07-29T18:33:47.224609Z"}], "thread_id": "Thread-1", "execution_time": 0.011349201202392578, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__creative_history__fivetran_synced.b9c95b4380", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect _fivetran_synced\nfrom \"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"stg_snapchat_ads__creative_history\"\nwhere _fivetran_synced is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.220019Z", "completed_at": "2024-07-29T18:33:47.224192Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.225188Z", "completed_at": "2024-07-29T18:33:47.225192Z"}], "thread_id": "Thread-2", "execution_time": 0.008802175521850586, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__creative_history_creative_id.09c83690f4", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect creative_id\nfrom \"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"stg_snapchat_ads__creative_history\"\nwhere creative_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.234708Z", "completed_at": "2024-07-29T18:33:47.248118Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.248342Z", "completed_at": "2024-07-29T18:33:47.248350Z"}], "thread_id": "Thread-1", "execution_time": 0.02174210548400879, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_group_report_hourly_stat_time_hour.ca4b495127", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect stat_time_hour\nfrom \"postgres\".\"ad_reporting_docs_stg_tiktok_ads\".\"stg_tiktok_ads__ad_group_report_hourly\"\nwhere stat_time_hour is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.227294Z", "completed_at": "2024-07-29T18:33:47.249217Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.249864Z", "completed_at": "2024-07-29T18:33:47.249868Z"}], "thread_id": "Thread-4", "execution_time": 0.024370193481445312, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_stg_tiktok_ads\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.231496Z", "completed_at": "2024-07-29T18:33:47.249418Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.250238Z", "completed_at": "2024-07-29T18:33:47.250241Z"}], "thread_id": "Thread-3", "execution_time": 0.024268150329589844, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_group_report_hourly_ad_group_id.8da17119f1", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom \"postgres\".\"ad_reporting_docs_stg_tiktok_ads\".\"stg_tiktok_ads__ad_group_report_hourly\"\nwhere ad_group_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.250599Z", "completed_at": "2024-07-29T18:33:47.256198Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.259744Z", "completed_at": "2024-07-29T18:33:47.259749Z"}], "thread_id": "Thread-1", "execution_time": 0.01085209846496582, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_snapchat_ads_source\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.256783Z", "completed_at": "2024-07-29T18:33:47.267418Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.267841Z", "completed_at": "2024-07-29T18:33:47.267846Z"}], "thread_id": "Thread-4", "execution_time": 0.012705087661743164, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__creative_url_tag_history_creative_id.7ff6bb9c1b", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect creative_id\nfrom \"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"stg_snapchat_ads__creative_url_tag_history\"\nwhere creative_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.263121Z", "completed_at": "2024-07-29T18:33:47.271187Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.271887Z", "completed_at": "2024-07-29T18:33:47.271892Z"}], "thread_id": "Thread-2", "execution_time": 0.01619696617126465, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_group_history_ad_group_id.04778d7fad", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom \"postgres\".\"ad_reporting_docs_stg_tiktok_ads\".\"stg_tiktok_ads__ad_group_history\"\nwhere ad_group_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.260134Z", "completed_at": "2024-07-29T18:33:47.271399Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.272279Z", "completed_at": "2024-07-29T18:33:47.272283Z"}], "thread_id": "Thread-3", "execution_time": 0.016843557357788086, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_stg_tiktok_ads\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.268208Z", "completed_at": "2024-07-29T18:33:47.273385Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.274234Z", "completed_at": "2024-07-29T18:33:47.274237Z"}], "thread_id": "Thread-1", "execution_time": 0.007161140441894531, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_history_source_relation__ad_id__updated_at.64ebc5aea6", "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\".\"ad_reporting_docs_stg_tiktok_ads\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.274574Z", "completed_at": "2024-07-29T18:33:47.285131Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.285618Z", "completed_at": "2024-07-29T18:33:47.285625Z"}], "thread_id": "Thread-4", "execution_time": 0.013036966323852539, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_history_ad_id.4ffd05b23a", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom \"postgres\".\"ad_reporting_docs_stg_tiktok_ads\".\"stg_tiktok_ads__ad_history\"\nwhere ad_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.278239Z", "completed_at": "2024-07-29T18:33:47.288993Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.289716Z", "completed_at": "2024-07-29T18:33:47.289720Z"}], "thread_id": "Thread-2", "execution_time": 0.01599287986755371, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_stg_tiktok_ads\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.281176Z", "completed_at": "2024-07-29T18:33:47.289453Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.290342Z", "completed_at": "2024-07-29T18:33:47.290345Z"}], "thread_id": "Thread-3", "execution_time": 0.016376018524169922, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.tiktok_ads_source.not_null_stg_tiktok_ads__campaign_report_hourly_campaign_id.ef898379fb", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom \"postgres\".\"ad_reporting_docs_stg_tiktok_ads\".\"stg_tiktok_ads__campaign_report_hourly\"\nwhere campaign_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.286014Z", "completed_at": "2024-07-29T18:33:47.291123Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.294844Z", "completed_at": "2024-07-29T18:33:47.294849Z"}], "thread_id": "Thread-1", "execution_time": 0.010075807571411133, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.tiktok_ads_source.not_null_stg_tiktok_ads__campaign_report_hourly_stat_time_hour.e75e13184c", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect stat_time_hour\nfrom \"postgres\".\"ad_reporting_docs_stg_tiktok_ads\".\"stg_tiktok_ads__campaign_report_hourly\"\nwhere stat_time_hour is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.291806Z", "completed_at": "2024-07-29T18:33:47.304582Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.305062Z", "completed_at": "2024-07-29T18:33:47.305067Z"}], "thread_id": "Thread-4", "execution_time": 0.015035152435302734, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__advertiser_source_relation__advertiser_id.4b39eb0db8", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, advertiser_id\n from \"postgres\".\"ad_reporting_docs_stg_tiktok_ads\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.299301Z", "completed_at": "2024-07-29T18:33:47.309883Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.310609Z", "completed_at": "2024-07-29T18:33:47.310614Z"}], "thread_id": "Thread-3", "execution_time": 0.015540838241577148, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.tiktok_ads.tiktok_ads__ad_group_report", "compiled": true, "compiled_code": "\n\nwith hourly as (\n \n select *\n from \"postgres\".\"ad_reporting_docs_stg_tiktok_ads\".\"stg_tiktok_ads__ad_group_report_hourly\"\n), \n\nad_groups as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_stg_tiktok_ads\".\"stg_tiktok_ads__ad_group_history\"\n where is_most_recent_record\n), \n\nadvertiser as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_stg_tiktok_ads\".\"stg_tiktok_ads__advertiser\"\n), \n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_stg_tiktok_ads\".\"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.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", "relation_name": "\"postgres\".\"ad_reporting_docs_tiktok_ads\".\"tiktok_ads__ad_group_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.296143Z", "completed_at": "2024-07-29T18:33:47.310128Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.311072Z", "completed_at": "2024-07-29T18:33:47.311076Z"}], "thread_id": "Thread-2", "execution_time": 0.01954817771911621, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.tiktok_ads_source.not_null_stg_tiktok_ads__advertiser_advertiser_id.5deab92def", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect advertiser_id\nfrom \"postgres\".\"ad_reporting_docs_stg_tiktok_ads\".\"stg_tiktok_ads__advertiser\"\nwhere advertiser_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.305448Z", "completed_at": "2024-07-29T18:33:47.311658Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.315416Z", "completed_at": "2024-07-29T18:33:47.315421Z"}], "thread_id": "Thread-1", "execution_time": 0.01641702651977539, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.tiktok_ads.tiktok_ads__campaign_report", "compiled": true, "compiled_code": "\n\nwith hourly as (\n \n select *\n from \"postgres\".\"ad_reporting_docs_stg_tiktok_ads\".\"stg_tiktok_ads__campaign_report_hourly\"\n), \n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_stg_tiktok_ads\".\"stg_tiktok_ads__campaign_history\"\n where is_most_recent_record\n), \n\nadvertiser as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_stg_tiktok_ads\".\"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.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", "relation_name": "\"postgres\".\"ad_reporting_docs_tiktok_ads\".\"tiktok_ads__campaign_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.312415Z", "completed_at": "2024-07-29T18:33:47.317254Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.326098Z", "completed_at": "2024-07-29T18:33:47.326104Z"}], "thread_id": "Thread-4", "execution_time": 0.015885114669799805, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__campaign_history_source_relation__campaign_id__updated_at.52babc6036", "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\".\"ad_reporting_docs_stg_tiktok_ads\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.317443Z", "completed_at": "2024-07-29T18:33:47.330975Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.331446Z", "completed_at": "2024-07-29T18:33:47.331451Z"}], "thread_id": "Thread-3", "execution_time": 0.015713214874267578, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.tiktok_ads_source.not_null_stg_tiktok_ads__campaign_history_campaign_id.7f9147d1e1", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom \"postgres\".\"ad_reporting_docs_stg_tiktok_ads\".\"stg_tiktok_ads__campaign_history\"\nwhere campaign_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.320276Z", "completed_at": "2024-07-29T18:33:47.331795Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.332615Z", "completed_at": "2024-07-29T18:33:47.332619Z"}], "thread_id": "Thread-2", "execution_time": 0.01664900779724121, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.tiktok_ads.tiktok_ads__ad_report", "compiled": true, "compiled_code": "\n\nwith hourly as (\n \n select *\n from \"postgres\".\"ad_reporting_docs_stg_tiktok_ads\".\"stg_tiktok_ads__ad_report_hourly\"\n), \n\nads as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_stg_tiktok_ads\".\"stg_tiktok_ads__ad_history\"\n where is_most_recent_record\n), \n\nad_groups as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_stg_tiktok_ads\".\"stg_tiktok_ads__ad_group_history\"\n where is_most_recent_record\n), \n\nadvertiser as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_stg_tiktok_ads\".\"stg_tiktok_ads__advertiser\"\n), \n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_stg_tiktok_ads\".\"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.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", "relation_name": "\"postgres\".\"ad_reporting_docs_tiktok_ads\".\"tiktok_ads__ad_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.326620Z", "completed_at": "2024-07-29T18:33:47.332193Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.338014Z", "completed_at": "2024-07-29T18:33:47.338019Z"}], "thread_id": "Thread-1", "execution_time": 0.021043777465820312, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.tiktok_ads.tiktok_ads__advertiser_report", "compiled": true, "compiled_code": "\n\nwith hourly as (\n \n select *\n from \"postgres\".\"ad_reporting_docs_stg_tiktok_ads\".\"stg_tiktok_ads__ad_report_hourly\"\n),\n\nadvertiser as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_stg_tiktok_ads\".\"stg_tiktok_ads__advertiser\"\n), \n\nads as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_stg_tiktok_ads\".\"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.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", "relation_name": "\"postgres\".\"ad_reporting_docs_tiktok_ads\".\"tiktok_ads__advertiser_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.332948Z", "completed_at": "2024-07-29T18:33:47.343931Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.347181Z", "completed_at": "2024-07-29T18:33:47.347187Z"}], "thread_id": "Thread-4", "execution_time": 0.01606607437133789, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.tiktok_ads.tiktok_ads__url_report", "compiled": true, "compiled_code": "\n\nwith hourly as (\n \n select *\n from \"postgres\".\"ad_reporting_docs_stg_tiktok_ads\".\"stg_tiktok_ads__ad_report_hourly\"\n), \n\nads as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_stg_tiktok_ads\".\"stg_tiktok_ads__ad_history\"\n where is_most_recent_record\n), \n\nad_groups as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_stg_tiktok_ads\".\"stg_tiktok_ads__ad_group_history\"\n where is_most_recent_record\n), \n\nadvertiser as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_stg_tiktok_ads\".\"stg_tiktok_ads__advertiser\"\n), \n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_stg_tiktok_ads\".\"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.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", "relation_name": "\"postgres\".\"ad_reporting_docs_tiktok_ads\".\"tiktok_ads__url_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.340046Z", "completed_at": "2024-07-29T18:33:47.350685Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.351468Z", "completed_at": "2024-07-29T18:33:47.351473Z"}], "thread_id": "Thread-3", "execution_time": 0.013136148452758789, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_stg_tiktok_ads\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.344371Z", "completed_at": "2024-07-29T18:33:47.351007Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.352030Z", "completed_at": "2024-07-29T18:33:47.352034Z"}], "thread_id": "Thread-2", "execution_time": 0.01252293586730957, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_report_hourly_ad_id.ee84d783ed", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom \"postgres\".\"ad_reporting_docs_stg_tiktok_ads\".\"stg_tiktok_ads__ad_report_hourly\"\nwhere ad_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.347558Z", "completed_at": "2024-07-29T18:33:47.351826Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.352861Z", "completed_at": "2024-07-29T18:33:47.352865Z"}], "thread_id": "Thread-1", "execution_time": 0.013096809387207031, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_report_hourly_stat_time_hour.9e2a2dca81", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect stat_time_hour\nfrom \"postgres\".\"ad_reporting_docs_stg_tiktok_ads\".\"stg_tiktok_ads__ad_report_hourly\"\nwhere stat_time_hour is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.353445Z", "completed_at": "2024-07-29T18:33:47.365129Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.368231Z", "completed_at": "2024-07-29T18:33:47.368237Z"}], "thread_id": "Thread-4", "execution_time": 0.01708698272705078, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__account_history_source_relation__account_id__updated_timestamp.3492933c38", "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\".\"ad_reporting_docs_twitter_ads_source\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.358097Z", "completed_at": "2024-07-29T18:33:47.368646Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.369155Z", "completed_at": "2024-07-29T18:33:47.369159Z"}], "thread_id": "Thread-3", "execution_time": 0.012542009353637695, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__account_history_account_id.66fb3601e2", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom \"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"stg_twitter_ads__account_history\"\nwhere account_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.361916Z", "completed_at": "2024-07-29T18:33:47.369503Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.370448Z", "completed_at": "2024-07-29T18:33:47.370451Z"}], "thread_id": "Thread-2", "execution_time": 0.013336896896362305, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_twitter_ads_source\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.365352Z", "completed_at": "2024-07-29T18:33:47.370241Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.371228Z", "completed_at": "2024-07-29T18:33:47.371231Z"}], "thread_id": "Thread-1", "execution_time": 0.013631820678710938, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_history_line_item_id.2cef040809", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect line_item_id\nfrom \"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"stg_twitter_ads__line_item_history\"\nwhere line_item_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.371801Z", "completed_at": "2024-07-29T18:33:47.379677Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.384094Z", "completed_at": "2024-07-29T18:33:47.384100Z"}], "thread_id": "Thread-4", "execution_time": 0.014402151107788086, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__campaign_history_source_relation__campaign_id__updated_timestamp.9b0c16487d", "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\".\"ad_reporting_docs_twitter_ads_source\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.375489Z", "completed_at": "2024-07-29T18:33:47.384496Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.388210Z", "completed_at": "2024-07-29T18:33:47.388215Z"}], "thread_id": "Thread-3", "execution_time": 0.01727008819580078, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__campaign_history_campaign_id.51218487ce", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom \"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"stg_twitter_ads__campaign_history\"\nwhere campaign_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.380101Z", "completed_at": "2024-07-29T18:33:47.388852Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.389720Z", "completed_at": "2024-07-29T18:33:47.389723Z"}], "thread_id": "Thread-2", "execution_time": 0.014552116394042969, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.twitter_ads.twitter_ads__campaign_report", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"stg_twitter_ads__campaign_report\"\n),\n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"stg_twitter_ads__campaign_history\"\n where is_latest_version\n),\n\naccounts as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"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\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", "relation_name": "\"postgres\".\"ad_reporting_docs_twitter_ads\".\"twitter_ads__campaign_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.384698Z", "completed_at": "2024-07-29T18:33:47.389495Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.393831Z", "completed_at": "2024-07-29T18:33:47.393836Z"}], "thread_id": "Thread-1", "execution_time": 0.014723062515258789, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_twitter_ads_source\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.390269Z", "completed_at": "2024-07-29T18:33:47.398530Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.401796Z", "completed_at": "2024-07-29T18:33:47.401801Z"}], "thread_id": "Thread-4", "execution_time": 0.013238906860351562, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__campaign_report_campaign_id.a63b62981f", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom \"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"stg_twitter_ads__campaign_report\"\nwhere campaign_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.395271Z", "completed_at": "2024-07-29T18:33:47.406536Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.407102Z", "completed_at": "2024-07-29T18:33:47.407106Z"}], "thread_id": "Thread-3", "execution_time": 0.01711893081665039, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__campaign_report_date_day.053c09786c", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"stg_twitter_ads__campaign_report\"\nwhere date_day is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.398948Z", "completed_at": "2024-07-29T18:33:47.407753Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.408619Z", "completed_at": "2024-07-29T18:33:47.408623Z"}], "thread_id": "Thread-2", "execution_time": 0.013646125793457031, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__campaign_report_placement.5067d8c4f4", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect placement\nfrom \"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"stg_twitter_ads__campaign_report\"\nwhere placement is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.402155Z", "completed_at": "2024-07-29T18:33:47.408227Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.409179Z", "completed_at": "2024-07-29T18:33:47.409183Z"}], "thread_id": "Thread-1", "execution_time": 0.011155843734741211, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.twitter_ads.twitter_ads__line_item_report", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"stg_twitter_ads__line_item_report\"\n),\n\nline_items as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"stg_twitter_ads__line_item_history\"\n where is_latest_version\n),\n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"stg_twitter_ads__campaign_history\"\n where is_latest_version\n),\n\naccounts as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"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\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", "relation_name": "\"postgres\".\"ad_reporting_docs_twitter_ads\".\"twitter_ads__line_item_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.409610Z", "completed_at": "2024-07-29T18:33:47.417687Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.420931Z", "completed_at": "2024-07-29T18:33:47.420937Z"}], "thread_id": "Thread-4", "execution_time": 0.013472795486450195, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_twitter_ads_source\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.414424Z", "completed_at": "2024-07-29T18:33:47.424056Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.424597Z", "completed_at": "2024-07-29T18:33:47.424601Z"}], "thread_id": "Thread-3", "execution_time": 0.015700817108154297, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_report_date_day.0f4d8cc8fe", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"stg_twitter_ads__line_item_report\"\nwhere date_day is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.421309Z", "completed_at": "2024-07-29T18:33:47.425476Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.426318Z", "completed_at": "2024-07-29T18:33:47.426321Z"}], "thread_id": "Thread-1", "execution_time": 0.009119033813476562, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_report_placement.cd7e77e0eb", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect placement\nfrom \"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"stg_twitter_ads__line_item_report\"\nwhere placement is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.418115Z", "completed_at": "2024-07-29T18:33:47.425699Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.426660Z", "completed_at": "2024-07-29T18:33:47.426663Z"}], "thread_id": "Thread-2", "execution_time": 0.012545108795166016, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_report_line_item_id.9f5a4860b7", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect line_item_id\nfrom \"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"stg_twitter_ads__line_item_report\"\nwhere line_item_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.426993Z", "completed_at": "2024-07-29T18:33:47.436438Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.439777Z", "completed_at": "2024-07-29T18:33:47.439782Z"}], "thread_id": "Thread-4", "execution_time": 0.014878988265991211, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.twitter_ads.twitter_ads__account_report", "compiled": true, "compiled_code": "\n\nwith accounts as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"stg_twitter_ads__account_history\"\n where is_latest_version\n),\n\npromoted_tweet_report as (\n \n select *\n from \"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"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\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\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", "relation_name": "\"postgres\".\"ad_reporting_docs_twitter_ads\".\"twitter_ads__account_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.432456Z", "completed_at": "2024-07-29T18:33:47.440133Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.443524Z", "completed_at": "2024-07-29T18:33:47.443528Z"}], "thread_id": "Thread-3", "execution_time": 0.01749396324157715, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_twitter_ads_source\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.436867Z", "completed_at": "2024-07-29T18:33:47.444178Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.445003Z", "completed_at": "2024-07-29T18:33:47.445007Z"}], "thread_id": "Thread-1", "execution_time": 0.009367227554321289, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__promoted_tweet_report_date_day.c4c46a5894", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"stg_twitter_ads__promoted_tweet_report\"\nwhere date_day is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.440344Z", "completed_at": "2024-07-29T18:33:47.444818Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.449415Z", "completed_at": "2024-07-29T18:33:47.449420Z"}], "thread_id": "Thread-2", "execution_time": 0.013525009155273438, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__promoted_tweet_report_placement.c1b1f648b3", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect placement\nfrom \"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"stg_twitter_ads__promoted_tweet_report\"\nwhere placement is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.445594Z", "completed_at": "2024-07-29T18:33:47.454161Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.457535Z", "completed_at": "2024-07-29T18:33:47.457540Z"}], "thread_id": "Thread-4", "execution_time": 0.01364588737487793, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__promoted_tweet_report_promoted_tweet_id.6028694598", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect promoted_tweet_id\nfrom \"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"stg_twitter_ads__promoted_tweet_report\"\nwhere promoted_tweet_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.450811Z", "completed_at": "2024-07-29T18:33:47.463973Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.464539Z", "completed_at": "2024-07-29T18:33:47.464543Z"}], "thread_id": "Thread-3", "execution_time": 0.019249916076660156, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_twitter_ads_source\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.454587Z", "completed_at": "2024-07-29T18:33:47.464932Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.465819Z", "completed_at": "2024-07-29T18:33:47.465822Z"}], "thread_id": "Thread-1", "execution_time": 0.015308856964111328, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__promoted_tweet_history_promoted_tweet_id.f447a1cd09", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect promoted_tweet_id\nfrom \"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"stg_twitter_ads__promoted_tweet_history\"\nwhere promoted_tweet_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.457937Z", "completed_at": "2024-07-29T18:33:47.465388Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.466351Z", "completed_at": "2024-07-29T18:33:47.466354Z"}], "thread_id": "Thread-2", "execution_time": 0.012696027755737305, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.twitter_ads.twitter_ads__promoted_tweet_report", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"stg_twitter_ads__promoted_tweet_report\"\n),\n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"stg_twitter_ads__campaign_history\"\n where is_latest_version\n),\n\naccounts as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"stg_twitter_ads__account_history\"\n where is_latest_version\n),\n\nline_items as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"stg_twitter_ads__line_item_history\"\n where is_latest_version\n),\n\npromoted_tweets as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"stg_twitter_ads__promoted_tweet_history\"\n where is_latest_version\n),\n\ntweets as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"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\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", "relation_name": "\"postgres\".\"ad_reporting_docs_twitter_ads\".\"twitter_ads__promoted_tweet_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.467154Z", "completed_at": "2024-07-29T18:33:47.474675Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.485411Z", "completed_at": "2024-07-29T18:33:47.485417Z"}], "thread_id": "Thread-4", "execution_time": 0.020322084426879883, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__tweet_source_relation__tweet_id.70de7f05f5", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, tweet_id\n from \"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.471417Z", "completed_at": "2024-07-29T18:33:47.485207Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.485885Z", "completed_at": "2024-07-29T18:33:47.485889Z"}], "thread_id": "Thread-3", "execution_time": 0.019253015518188477, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__tweet_tweet_id.a0427f37cd", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect tweet_id\nfrom \"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"stg_twitter_ads__tweet\"\nwhere tweet_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.479415Z", "completed_at": "2024-07-29T18:33:47.487031Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.487805Z", "completed_at": "2024-07-29T18:33:47.487809Z"}], "thread_id": "Thread-2", "execution_time": 0.016662120819091797, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.amazon_ads.amazon_ads__ad_report", "compiled": true, "compiled_code": "\n\nwith report as (\n select *\n from \"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"stg_amazon_ads__advertised_product_report\"\n), \n\naccount_info as (\n select *\n from \"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"stg_amazon_ads__profile\"\n where _fivetran_deleted = False\n),\n\nportfolios as (\n select *\n from \"postgres\".\"ad_reporting_docs_amazon_ads\".\"int_amazon_ads__portfolio_history\"\n), \n\ncampaigns as (\n select *\n from \"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"stg_amazon_ads__campaign_history\"\n where is_most_recent_record = True\n),\n\nad_groups as (\n select *\n from \"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"stg_amazon_ads__ad_group_history\"\n where is_most_recent_record = True\n), \n\nads as (\n select *\n from \"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"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\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", "relation_name": "\"postgres\".\"ad_reporting_docs_amazon_ads\".\"amazon_ads__ad_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.474882Z", "completed_at": "2024-07-29T18:33:47.487212Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.488130Z", "completed_at": "2024-07-29T18:33:47.488134Z"}], "thread_id": "Thread-1", "execution_time": 0.017247915267944336, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.amazon_ads.amazon_ads__ad_group_report", "compiled": true, "compiled_code": "\n\nwith report as (\n select *\n from \"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"stg_amazon_ads__ad_group_level_report\"\n), \n\naccount_info as (\n select *\n from \"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"stg_amazon_ads__profile\"\n where _fivetran_deleted = False\n),\n\nportfolios as (\n select *\n from \"postgres\".\"ad_reporting_docs_amazon_ads\".\"int_amazon_ads__portfolio_history\"\n), \n\ncampaigns as (\n select *\n from \"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"stg_amazon_ads__campaign_history\"\n where is_most_recent_record = True\n),\n\nad_groups as (\n select *\n from \"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"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\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", "relation_name": "\"postgres\".\"ad_reporting_docs_amazon_ads\".\"amazon_ads__ad_group_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.488652Z", "completed_at": "2024-07-29T18:33:47.499646Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.505268Z", "completed_at": "2024-07-29T18:33:47.505276Z"}], "thread_id": "Thread-4", "execution_time": 0.018555164337158203, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.amazon_ads.amazon_ads__campaign_report", "compiled": true, "compiled_code": "\n\nwith report as (\n select *\n from \"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"stg_amazon_ads__campaign_level_report\"\n), \n\naccount_info as (\n select *\n from \"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"stg_amazon_ads__profile\"\n where _fivetran_deleted = False\n),\n\nportfolios as (\n select *\n from \"postgres\".\"ad_reporting_docs_amazon_ads\".\"int_amazon_ads__portfolio_history\"\n), \n\ncampaigns as (\n select *\n from \"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"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\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", "relation_name": "\"postgres\".\"ad_reporting_docs_amazon_ads\".\"amazon_ads__campaign_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.493472Z", "completed_at": "2024-07-29T18:33:47.505671Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.510403Z", "completed_at": "2024-07-29T18:33:47.510408Z"}], "thread_id": "Thread-3", "execution_time": 0.02306079864501953, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.amazon_ads.amazon_ads__keyword_report", "compiled": true, "compiled_code": "\n\nwith report as (\n select *\n from \"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"stg_amazon_ads__targeting_keyword_report\"\n), \n\naccount_info as (\n select *\n from \"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"stg_amazon_ads__profile\"\n where _fivetran_deleted = False\n),\n\nportfolios as (\n select *\n from \"postgres\".\"ad_reporting_docs_amazon_ads\".\"int_amazon_ads__portfolio_history\"\n), \n\ncampaigns as (\n select *\n from \"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"stg_amazon_ads__campaign_history\"\n where is_most_recent_record = True\n),\n\nad_groups as (\n select *\n from \"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"stg_amazon_ads__ad_group_history\"\n where is_most_recent_record = True\n), \n\nkeywords as (\n select *\n from \"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"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\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", "relation_name": "\"postgres\".\"ad_reporting_docs_amazon_ads\".\"amazon_ads__keyword_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.500213Z", "completed_at": "2024-07-29T18:33:47.510846Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.511623Z", "completed_at": "2024-07-29T18:33:47.511627Z"}], "thread_id": "Thread-2", "execution_time": 0.012806177139282227, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.amazon_ads.amazon_ads__search_report", "compiled": true, "compiled_code": "\n\nwith report as (\n select *\n from \"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"stg_amazon_ads__search_term_ad_keyword_report\"\n), \n\naccount_info as (\n select *\n from \"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"stg_amazon_ads__profile\"\n where _fivetran_deleted = False\n),\n\nportfolios as (\n select *\n from \"postgres\".\"ad_reporting_docs_amazon_ads\".\"int_amazon_ads__portfolio_history\"\n), \n\ncampaigns as (\n select *\n from \"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"stg_amazon_ads__campaign_history\"\n where is_most_recent_record = True\n),\n\nad_groups as (\n select *\n from \"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"stg_amazon_ads__ad_group_history\"\n where is_most_recent_record = True\n), \n\nkeywords as (\n select *\n from \"postgres\".\"ad_reporting_docs_amazon_ads_source\".\"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\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", "relation_name": "\"postgres\".\"ad_reporting_docs_amazon_ads\".\"amazon_ads__search_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.505871Z", "completed_at": "2024-07-29T18:33:47.512180Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.515797Z", "completed_at": "2024-07-29T18:33:47.515802Z"}], "thread_id": "Thread-1", "execution_time": 0.016688823699951172, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__account_report_source_relation__date_day__profile_id.5ff488055c", "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\".\"ad_reporting_docs_amazon_ads\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.512858Z", "completed_at": "2024-07-29T18:33:47.520258Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.524341Z", "completed_at": "2024-07-29T18:33:47.524347Z"}], "thread_id": "Thread-4", "execution_time": 0.013364076614379883, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.amazon_ads.not_null_amazon_ads__account_report_account_id.83adef7061", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom \"postgres\".\"ad_reporting_docs_amazon_ads\".\"amazon_ads__account_report\"\nwhere account_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.516976Z", "completed_at": "2024-07-29T18:33:47.527561Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.528120Z", "completed_at": "2024-07-29T18:33:47.528125Z"}], "thread_id": "Thread-3", "execution_time": 0.015804290771484375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.amazon_ads.not_null_amazon_ads__account_report_profile_id.87fb8dbe66", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect profile_id\nfrom \"postgres\".\"ad_reporting_docs_amazon_ads\".\"amazon_ads__account_report\"\nwhere profile_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.520495Z", "completed_at": "2024-07-29T18:33:47.528710Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.529596Z", "completed_at": "2024-07-29T18:33:47.529600Z"}], "thread_id": "Thread-2", "execution_time": 0.013286113739013672, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__portfolio_report_source_relation__date_day__portfolio_id.b3bfe4fce4", "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\".\"ad_reporting_docs_amazon_ads\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.524759Z", "completed_at": "2024-07-29T18:33:47.529190Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.530172Z", "completed_at": "2024-07-29T18:33:47.530175Z"}], "thread_id": "Thread-1", "execution_time": 0.010209083557128906, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.amazon_ads.not_null_amazon_ads__portfolio_report_profile_id.1a910441c6", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect profile_id\nfrom \"postgres\".\"ad_reporting_docs_amazon_ads\".\"amazon_ads__portfolio_report\"\nwhere profile_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.530511Z", "completed_at": "2024-07-29T18:33:47.537943Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.544644Z", "completed_at": "2024-07-29T18:33:47.544649Z"}], "thread_id": "Thread-4", "execution_time": 0.016217947006225586, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_apple_search_ads\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.534455Z", "completed_at": "2024-07-29T18:33:47.545034Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.545536Z", "completed_at": "2024-07-29T18:33:47.545540Z"}], "thread_id": "Thread-3", "execution_time": 0.015651226043701172, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.apple_search_ads.not_null_apple_search_ads__ad_group_report_ad_group_id.60febec6b5", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom \"postgres\".\"ad_reporting_docs_apple_search_ads\".\"apple_search_ads__ad_group_report\"\nwhere ad_group_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.538180Z", "completed_at": "2024-07-29T18:33:47.546201Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.547064Z", "completed_at": "2024-07-29T18:33:47.547068Z"}], "thread_id": "Thread-2", "execution_time": 0.012913227081298828, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.apple_search_ads.not_null_apple_search_ads__ad_group_report_date_day.e6ffb30b3c", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_docs_apple_search_ads\".\"apple_search_ads__ad_group_report\"\nwhere date_day is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.541737Z", "completed_at": "2024-07-29T18:33:47.546407Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.547400Z", "completed_at": "2024-07-29T18:33:47.547404Z"}], "thread_id": "Thread-1", "execution_time": 0.010213851928710938, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_apple_search_ads\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.547962Z", "completed_at": "2024-07-29T18:33:47.555298Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.561957Z", "completed_at": "2024-07-29T18:33:47.561962Z"}], "thread_id": "Thread-4", "execution_time": 0.016037940979003906, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.apple_search_ads.not_null_apple_search_ads__ad_report_ad_id.0ab2c5075c", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom \"postgres\".\"ad_reporting_docs_apple_search_ads\".\"apple_search_ads__ad_report\"\nwhere ad_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.552059Z", "completed_at": "2024-07-29T18:33:47.562391Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.562899Z", "completed_at": "2024-07-29T18:33:47.562902Z"}], "thread_id": "Thread-3", "execution_time": 0.01520991325378418, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.apple_search_ads.not_null_apple_search_ads__ad_report_date_day.b86c049e17", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_docs_apple_search_ads\".\"apple_search_ads__ad_report\"\nwhere date_day is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.555521Z", "completed_at": "2024-07-29T18:33:47.563448Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.564302Z", "completed_at": "2024-07-29T18:33:47.564305Z"}], "thread_id": "Thread-2", "execution_time": 0.012770891189575195, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_apple_search_ads\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.559209Z", "completed_at": "2024-07-29T18:33:47.563646Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.564636Z", "completed_at": "2024-07-29T18:33:47.564639Z"}], "thread_id": "Thread-1", "execution_time": 0.012861251831054688, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.apple_search_ads.not_null_apple_search_ads__campaign_report_campaign_id.e26ed1e146", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom \"postgres\".\"ad_reporting_docs_apple_search_ads\".\"apple_search_ads__campaign_report\"\nwhere campaign_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.565190Z", "completed_at": "2024-07-29T18:33:47.572490Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.579113Z", "completed_at": "2024-07-29T18:33:47.579119Z"}], "thread_id": "Thread-4", "execution_time": 0.015938997268676758, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.apple_search_ads.not_null_apple_search_ads__campaign_report_date_day.35652b8d1a", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_docs_apple_search_ads\".\"apple_search_ads__campaign_report\"\nwhere date_day is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.569200Z", "completed_at": "2024-07-29T18:33:47.579564Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.580084Z", "completed_at": "2024-07-29T18:33:47.580087Z"}], "thread_id": "Thread-3", "execution_time": 0.015168905258178711, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__organization_report_source_relation__organization_id__date_day.8a9d834203", "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\".\"ad_reporting_docs_apple_search_ads\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.572714Z", "completed_at": "2024-07-29T18:33:47.580645Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.581504Z", "completed_at": "2024-07-29T18:33:47.581508Z"}], "thread_id": "Thread-2", "execution_time": 0.012818098068237305, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.apple_search_ads.not_null_apple_search_ads__organization_report_date_day.5784fed523", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_docs_apple_search_ads\".\"apple_search_ads__organization_report\"\nwhere date_day is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.576316Z", "completed_at": "2024-07-29T18:33:47.581071Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.582072Z", "completed_at": "2024-07-29T18:33:47.582076Z"}], "thread_id": "Thread-1", "execution_time": 0.013151168823242188, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.apple_search_ads.not_null_apple_search_ads__organization_report_organization_id.b6cf7d69f8", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom \"postgres\".\"ad_reporting_docs_apple_search_ads\".\"apple_search_ads__organization_report\"\nwhere organization_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.582424Z", "completed_at": "2024-07-29T18:33:47.589708Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.593759Z", "completed_at": "2024-07-29T18:33:47.593764Z"}], "thread_id": "Thread-4", "execution_time": 0.013387918472290039, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_apple_search_ads\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.586374Z", "completed_at": "2024-07-29T18:33:47.594166Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.598180Z", "completed_at": "2024-07-29T18:33:47.598184Z"}], "thread_id": "Thread-3", "execution_time": 0.016394853591918945, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.apple_search_ads.not_null_apple_search_ads__keyword_report_date_day.3dec8d0e82", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_docs_apple_search_ads\".\"apple_search_ads__keyword_report\"\nwhere date_day is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.590179Z", "completed_at": "2024-07-29T18:33:47.599322Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.602778Z", "completed_at": "2024-07-29T18:33:47.602783Z"}], "thread_id": "Thread-2", "execution_time": 0.016697168350219727, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.apple_search_ads.not_null_apple_search_ads__keyword_report_keyword_id.ea493710db", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect keyword_id\nfrom \"postgres\".\"ad_reporting_docs_apple_search_ads\".\"apple_search_ads__keyword_report\"\nwhere keyword_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.594361Z", "completed_at": "2024-07-29T18:33:47.599520Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.603128Z", "completed_at": "2024-07-29T18:33:47.603131Z"}], "thread_id": "Thread-1", "execution_time": 0.01397705078125, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_apple_search_ads\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.599949Z", "completed_at": "2024-07-29T18:33:47.607472Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.608136Z", "completed_at": "2024-07-29T18:33:47.608140Z"}], "thread_id": "Thread-4", "execution_time": 0.009604215621948242, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.apple_search_ads.not_null_apple_search_ads__search_term_report_date_day.1bc3b0d57c", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_docs_apple_search_ads\".\"apple_search_ads__search_term_report\"\nwhere date_day is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.604197Z", "completed_at": "2024-07-29T18:33:47.668758Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.672261Z", "completed_at": "2024-07-29T18:33:47.672267Z"}], "thread_id": "Thread-3", "execution_time": 0.07261276245117188, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.apple_search_ads.not_null_apple_search_ads__search_term_report_search_term_text.aecc7447f7", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect search_term_text\nfrom \"postgres\".\"ad_reporting_docs_apple_search_ads\".\"apple_search_ads__search_term_report\"\nwhere search_term_text is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.608497Z", "completed_at": "2024-07-29T18:33:47.673739Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.677222Z", "completed_at": "2024-07-29T18:33:47.677227Z"}], "thread_id": "Thread-2", "execution_time": 0.07027196884155273, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__account_report_source_relation__date_day__account_id.bf8a017de1", "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\".\"ad_reporting_docs_facebook_ads\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.668981Z", "completed_at": "2024-07-29T18:33:47.676812Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.677612Z", "completed_at": "2024-07-29T18:33:47.677616Z"}], "thread_id": "Thread-1", "execution_time": 0.07041597366333008, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.facebook_ads.not_null_facebook_ads__account_report_account_id.9be02b4024", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom \"postgres\".\"ad_reporting_docs_facebook_ads\".\"facebook_ads__account_report\"\nwhere account_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.673939Z", "completed_at": "2024-07-29T18:33:47.681436Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.682120Z", "completed_at": "2024-07-29T18:33:47.682125Z"}], "thread_id": "Thread-4", "execution_time": 0.009466886520385742, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_facebook_ads\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.677990Z", "completed_at": "2024-07-29T18:33:47.682454Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.683281Z", "completed_at": "2024-07-29T18:33:47.683284Z"}], "thread_id": "Thread-3", "execution_time": 0.009835958480834961, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.facebook_ads.not_null_facebook_ads__ad_report_ad_id.3811d9c238", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom \"postgres\".\"ad_reporting_docs_facebook_ads\".\"facebook_ads__ad_report\"\nwhere ad_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.687315Z", "completed_at": "2024-07-29T18:33:47.694235Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.697482Z", "completed_at": "2024-07-29T18:33:47.697488Z"}], "thread_id": "Thread-1", "execution_time": 0.01564788818359375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.facebook_ads.not_null_facebook_ads__ad_set_report_ad_set_id.1ac870f5e4", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_set_id\nfrom \"postgres\".\"ad_reporting_docs_facebook_ads\".\"facebook_ads__ad_set_report\"\nwhere ad_set_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.683601Z", "completed_at": "2024-07-29T18:33:47.694438Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.697880Z", "completed_at": "2024-07-29T18:33:47.697884Z"}], "thread_id": "Thread-2", "execution_time": 0.016285181045532227, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_facebook_ads\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.691097Z", "completed_at": "2024-07-29T18:33:47.698245Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.699011Z", "completed_at": "2024-07-29T18:33:47.699014Z"}], "thread_id": "Thread-4", "execution_time": 0.009009838104248047, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__campaign_report_source_relation__date_day__account_id__campaign_id.f97e1afff3", "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\".\"ad_reporting_docs_facebook_ads\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.694650Z", "completed_at": "2024-07-29T18:33:47.700671Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.701515Z", "completed_at": "2024-07-29T18:33:47.701519Z"}], "thread_id": "Thread-3", "execution_time": 0.01071786880493164, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.facebook_ads.not_null_facebook_ads__campaign_report_campaign_id.d4f96d8d21", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom \"postgres\".\"ad_reporting_docs_facebook_ads\".\"facebook_ads__campaign_report\"\nwhere campaign_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.711050Z", "completed_at": "2024-07-29T18:33:47.718358Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.722335Z", "completed_at": "2024-07-29T18:33:47.722341Z"}], "thread_id": "Thread-2", "execution_time": 0.022820234298706055, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__url_tags_source_relation___fivetran_id__key__type.c65de59dec", "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\".\"ad_reporting_docs_facebook_ads\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.702071Z", "completed_at": "2024-07-29T18:33:47.718540Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.722733Z", "completed_at": "2024-07-29T18:33:47.722737Z"}], "thread_id": "Thread-1", "execution_time": 0.023431062698364258, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.facebook_ads.int_facebook_ads__creative_history", "compiled": true, "compiled_code": "\n\n\n\nwith base as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_facebook_ads_source\".\"stg_facebook_ads__creative_history\"\n where is_most_recent_record = true\n\n), \n\nurl_tags as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_facebook_ads\".\"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", "relation_name": "\"postgres\".\"ad_reporting_docs_facebook_ads\".\"int_facebook_ads__creative_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.715316Z", "completed_at": "2024-07-29T18:33:47.723357Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.724124Z", "completed_at": "2024-07-29T18:33:47.724127Z"}], "thread_id": "Thread-4", "execution_time": 0.022330045700073242, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.facebook_ads.not_null_facebook_ads__url_tags__fivetran_id.151d9515f3", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect _fivetran_id\nfrom \"postgres\".\"ad_reporting_docs_facebook_ads\".\"facebook_ads__url_tags\"\nwhere _fivetran_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.718757Z", "completed_at": "2024-07-29T18:33:47.724720Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.725524Z", "completed_at": "2024-07-29T18:33:47.725527Z"}], "thread_id": "Thread-3", "execution_time": 0.010501861572265625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__account_report_source_relation__account_id__date_day.8480aa9317", "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\".\"ad_reporting_docs_google_ads\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.725851Z", "completed_at": "2024-07-29T18:33:47.736381Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.739726Z", "completed_at": "2024-07-29T18:33:47.739731Z"}], "thread_id": "Thread-2", "execution_time": 0.015907764434814453, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.google_ads.not_null_google_ads__account_report_account_id.abb0985422", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom \"postgres\".\"ad_reporting_docs_google_ads\".\"google_ads__account_report\"\nwhere account_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.728950Z", "completed_at": "2024-07-29T18:33:47.736618Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.740091Z", "completed_at": "2024-07-29T18:33:47.740095Z"}], "thread_id": "Thread-1", "execution_time": 0.01565718650817871, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__ad_group_report_source_relation__ad_group_id__date_day.41d73a32f3", "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\".\"ad_reporting_docs_google_ads\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.732665Z", "completed_at": "2024-07-29T18:33:47.740481Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.741207Z", "completed_at": "2024-07-29T18:33:47.741211Z"}], "thread_id": "Thread-4", "execution_time": 0.012544870376586914, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.google_ads.not_null_google_ads__ad_group_report_ad_group_id.c186523c0c", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom \"postgres\".\"ad_reporting_docs_google_ads\".\"google_ads__ad_group_report\"\nwhere ad_group_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.736820Z", "completed_at": "2024-07-29T18:33:47.741748Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.742615Z", "completed_at": "2024-07-29T18:33:47.742618Z"}], "thread_id": "Thread-3", "execution_time": 0.010257959365844727, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_google_ads\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.746479Z", "completed_at": "2024-07-29T18:33:47.754854Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.758550Z", "completed_at": "2024-07-29T18:33:47.758557Z"}], "thread_id": "Thread-1", "execution_time": 0.016665935516357422, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_google_ads\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.743371Z", "completed_at": "2024-07-29T18:33:47.755071Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.758989Z", "completed_at": "2024-07-29T18:33:47.758993Z"}], "thread_id": "Thread-2", "execution_time": 0.017507076263427734, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.google_ads.not_null_google_ads__ad_report_ad_id.7bd6a287ad", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom \"postgres\".\"ad_reporting_docs_google_ads\".\"google_ads__ad_report\"\nwhere ad_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.750570Z", "completed_at": "2024-07-29T18:33:47.759667Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.760574Z", "completed_at": "2024-07-29T18:33:47.760577Z"}], "thread_id": "Thread-4", "execution_time": 0.017481088638305664, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.google_ads.not_null_google_ads__campaign_report_campaign_id.cc6694fa0e", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom \"postgres\".\"ad_reporting_docs_google_ads\".\"google_ads__campaign_report\"\nwhere campaign_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.755368Z", "completed_at": "2024-07-29T18:33:47.760358Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.761331Z", "completed_at": "2024-07-29T18:33:47.761334Z"}], "thread_id": "Thread-3", "execution_time": 0.011108160018920898, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_google_ads\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.762099Z", "completed_at": "2024-07-29T18:33:47.775853Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.776389Z", "completed_at": "2024-07-29T18:33:47.776395Z"}], "thread_id": "Thread-1", "execution_time": 0.01632404327392578, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.google_ads.not_null_google_ads__url_report_base_url.e3578c0f72", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect base_url\nfrom \"postgres\".\"ad_reporting_docs_google_ads\".\"google_ads__url_report\"\nwhere base_url is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.765653Z", "completed_at": "2024-07-29T18:33:47.776176Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.776799Z", "completed_at": "2024-07-29T18:33:47.776803Z"}], "thread_id": "Thread-2", "execution_time": 0.01595282554626465, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_google_ads\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.769364Z", "completed_at": "2024-07-29T18:33:47.777144Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.778105Z", "completed_at": "2024-07-29T18:33:47.778109Z"}], "thread_id": "Thread-4", "execution_time": 0.012759685516357422, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.google_ads.not_null_google_ads__keyword_report_criterion_id.4cab66a055", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect criterion_id\nfrom \"postgres\".\"ad_reporting_docs_google_ads\".\"google_ads__keyword_report\"\nwhere criterion_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.773010Z", "completed_at": "2024-07-29T18:33:47.777648Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.778669Z", "completed_at": "2024-07-29T18:33:47.778673Z"}], "thread_id": "Thread-3", "execution_time": 0.010124683380126953, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.linkedin.dbt_utils_unique_combination_of_columns_linkedin_ads__account_report_source_relation__date_day__account_id.da7ea6faeb", "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\".\"ad_reporting_docs_linkedin_ads\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.780303Z", "completed_at": "2024-07-29T18:33:47.793163Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.793838Z", "completed_at": "2024-07-29T18:33:47.793843Z"}], "thread_id": "Thread-1", "execution_time": 0.015462875366210938, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.linkedin.not_null_linkedin_ads__account_report_account_id.0c34ea1842", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom \"postgres\".\"ad_reporting_docs_linkedin_ads\".\"linkedin_ads__account_report\"\nwhere account_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.783431Z", "completed_at": "2024-07-29T18:33:47.793368Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.794201Z", "completed_at": "2024-07-29T18:33:47.794205Z"}], "thread_id": "Thread-2", "execution_time": 0.015240907669067383, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.linkedin.not_null_linkedin_ads__account_report_date_day.c4b33f8f53", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_docs_linkedin_ads\".\"linkedin_ads__account_report\"\nwhere date_day is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.786658Z", "completed_at": "2024-07-29T18:33:47.793618Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.794563Z", "completed_at": "2024-07-29T18:33:47.794567Z"}], "thread_id": "Thread-4", "execution_time": 0.014531850814819336, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_linkedin_ads\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.790369Z", "completed_at": "2024-07-29T18:33:47.795146Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.796069Z", "completed_at": "2024-07-29T18:33:47.796072Z"}], "thread_id": "Thread-3", "execution_time": 0.012931108474731445, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.linkedin.not_null_linkedin_ads__campaign_group_report_campaign_group_id.39b448cdaf", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_group_id\nfrom \"postgres\".\"ad_reporting_docs_linkedin_ads\".\"linkedin_ads__campaign_group_report\"\nwhere campaign_group_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.803598Z", "completed_at": "2024-07-29T18:33:47.810327Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.810530Z", "completed_at": "2024-07-29T18:33:47.810534Z"}], "thread_id": "Thread-4", "execution_time": 0.01397395133972168, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.linkedin.not_null_linkedin_ads__campaign_report_campaign_id.bf43964b15", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom \"postgres\".\"ad_reporting_docs_linkedin_ads\".\"linkedin_ads__campaign_report\"\nwhere campaign_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.797625Z", "completed_at": "2024-07-29T18:33:47.814479Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.814944Z", "completed_at": "2024-07-29T18:33:47.814949Z"}], "thread_id": "Thread-1", "execution_time": 0.01915907859802246, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.linkedin.not_null_linkedin_ads__campaign_group_report_date_day.2676a1f76b", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_docs_linkedin_ads\".\"linkedin_ads__campaign_group_report\"\nwhere date_day is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.800737Z", "completed_at": "2024-07-29T18:33:47.814682Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.815312Z", "completed_at": "2024-07-29T18:33:47.815315Z"}], "thread_id": "Thread-2", "execution_time": 0.01896977424621582, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_linkedin_ads\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.811503Z", "completed_at": "2024-07-29T18:33:47.815664Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.816566Z", "completed_at": "2024-07-29T18:33:47.816569Z"}], "thread_id": "Thread-4", "execution_time": 0.005523204803466797, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_linkedin_ads\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.807403Z", "completed_at": "2024-07-29T18:33:47.816133Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.817140Z", "completed_at": "2024-07-29T18:33:47.817144Z"}], "thread_id": "Thread-3", "execution_time": 0.016695022583007812, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.linkedin.not_null_linkedin_ads__campaign_report_date_day.8d320b88b1", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_docs_linkedin_ads\".\"linkedin_ads__campaign_report\"\nwhere date_day is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.818777Z", "completed_at": "2024-07-29T18:33:47.831938Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.832149Z", "completed_at": "2024-07-29T18:33:47.832155Z"}], "thread_id": "Thread-1", "execution_time": 0.01530599594116211, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.linkedin.not_null_linkedin_ads__creative_report_creative_id.096d93f889", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect creative_id\nfrom \"postgres\".\"ad_reporting_docs_linkedin_ads\".\"linkedin_ads__creative_report\"\nwhere creative_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.821882Z", "completed_at": "2024-07-29T18:33:47.835953Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.836388Z", "completed_at": "2024-07-29T18:33:47.836393Z"}], "thread_id": "Thread-2", "execution_time": 0.018978118896484375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.linkedin.not_null_linkedin_ads__creative_report_date_day.0c6338b020", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_docs_linkedin_ads\".\"linkedin_ads__creative_report\"\nwhere date_day is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.828910Z", "completed_at": "2024-07-29T18:33:47.836201Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.836983Z", "completed_at": "2024-07-29T18:33:47.836987Z"}], "thread_id": "Thread-3", "execution_time": 0.01538991928100586, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.linkedin.not_null_linkedin_ads__url_report_click_uri.81534087cb", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect click_uri\nfrom \"postgres\".\"ad_reporting_docs_linkedin_ads\".\"linkedin_ads__url_report\"\nwhere click_uri is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.825977Z", "completed_at": "2024-07-29T18:33:47.836758Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.837769Z", "completed_at": "2024-07-29T18:33:47.837772Z"}], "thread_id": "Thread-4", "execution_time": 0.019267797470092773, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_linkedin_ads\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.833124Z", "completed_at": "2024-07-29T18:33:47.837343Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.838352Z", "completed_at": "2024-07-29T18:33:47.838356Z"}], "thread_id": "Thread-1", "execution_time": 0.0056798458099365234, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.linkedin.not_null_linkedin_ads__url_report_creative_id.83967fe9d2", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect creative_id\nfrom \"postgres\".\"ad_reporting_docs_linkedin_ads\".\"linkedin_ads__url_report\"\nwhere creative_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.841379Z", "completed_at": "2024-07-29T18:33:47.857069Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.857267Z", "completed_at": "2024-07-29T18:33:47.857272Z"}], "thread_id": "Thread-2", "execution_time": 0.018647193908691406, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.linkedin.not_null_linkedin_ads__url_report_date_day.48b540f315", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_docs_linkedin_ads\".\"linkedin_ads__url_report\"\nwhere date_day is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.844403Z", "completed_at": "2024-07-29T18:33:47.861755Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.862224Z", "completed_at": "2024-07-29T18:33:47.862229Z"}], "thread_id": "Thread-3", "execution_time": 0.02311086654663086, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_microsoft_ads\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.847528Z", "completed_at": "2024-07-29T18:33:47.862013Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.862789Z", "completed_at": "2024-07-29T18:33:47.862792Z"}], "thread_id": "Thread-4", "execution_time": 0.022121906280517578, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.microsoft_ads.not_null_microsoft_ads__account_report_account_id.f88e46157e", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom \"postgres\".\"ad_reporting_docs_microsoft_ads\".\"microsoft_ads__account_report\"\nwhere account_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.858246Z", "completed_at": "2024-07-29T18:33:47.862581Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.863582Z", "completed_at": "2024-07-29T18:33:47.863585Z"}], "thread_id": "Thread-2", "execution_time": 0.005786895751953125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__tweet_url_source_relation__index__tweet_id.ce1a2b4a87", "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\".\"ad_reporting_docs_twitter_ads_source\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.850361Z", "completed_at": "2024-07-29T18:33:47.863384Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.864399Z", "completed_at": "2024-07-29T18:33:47.864402Z"}], "thread_id": "Thread-1", "execution_time": 0.023283958435058594, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.twitter_ads.twitter_ads__url_report", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"stg_twitter_ads__promoted_tweet_report\"\n),\n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"stg_twitter_ads__campaign_history\"\n where is_latest_version\n),\n\naccounts as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"stg_twitter_ads__account_history\"\n where is_latest_version\n),\n\nline_items as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"stg_twitter_ads__line_item_history\"\n where is_latest_version\n),\n\npromoted_tweets as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"stg_twitter_ads__promoted_tweet_history\"\n where is_latest_version\n),\n\ntweets as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"stg_twitter_ads__tweet\"\n),\n\ntweet_url as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"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\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", "relation_name": "\"postgres\".\"ad_reporting_docs_twitter_ads\".\"twitter_ads__url_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.866142Z", "completed_at": "2024-07-29T18:33:47.879570Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.879780Z", "completed_at": "2024-07-29T18:33:47.879785Z"}], "thread_id": "Thread-3", "execution_time": 0.015687942504882812, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__tweet_url_index.e998fb67be", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect index\nfrom \"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"stg_twitter_ads__tweet_url\"\nwhere index is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.869456Z", "completed_at": "2024-07-29T18:33:47.880623Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.881411Z", "completed_at": "2024-07-29T18:33:47.881414Z"}], "thread_id": "Thread-4", "execution_time": 0.016488075256347656, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__tweet_url_tweet_id.f7e1670218", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect tweet_id\nfrom \"postgres\".\"ad_reporting_docs_twitter_ads_source\".\"stg_twitter_ads__tweet_url\"\nwhere tweet_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.872463Z", "completed_at": "2024-07-29T18:33:47.880802Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.881730Z", "completed_at": "2024-07-29T18:33:47.881733Z"}], "thread_id": "Thread-2", "execution_time": 0.016061782836914062, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_microsoft_ads\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.876212Z", "completed_at": "2024-07-29T18:33:47.881184Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.884866Z", "completed_at": "2024-07-29T18:33:47.884871Z"}], "thread_id": "Thread-1", "execution_time": 0.015925884246826172, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_microsoft_ads\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.882065Z", "completed_at": "2024-07-29T18:33:47.886565Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.887374Z", "completed_at": "2024-07-29T18:33:47.887378Z"}], "thread_id": "Thread-3", "execution_time": 0.007030963897705078, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.microsoft_ads.not_null_microsoft_ads__ad_group_report_ad_group_id.1974ec5ab9", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom \"postgres\".\"ad_reporting_docs_microsoft_ads\".\"microsoft_ads__ad_group_report\"\nwhere ad_group_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.890753Z", "completed_at": "2024-07-29T18:33:47.898281Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.901593Z", "completed_at": "2024-07-29T18:33:47.901598Z"}], "thread_id": "Thread-2", "execution_time": 0.015330076217651367, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_microsoft_ads\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.887889Z", "completed_at": "2024-07-29T18:33:47.898499Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.902182Z", "completed_at": "2024-07-29T18:33:47.902186Z"}], "thread_id": "Thread-4", "execution_time": 0.016144752502441406, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.microsoft_ads.not_null_microsoft_ads__ad_report_ad_id.b089709125", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom \"postgres\".\"ad_reporting_docs_microsoft_ads\".\"microsoft_ads__ad_report\"\nwhere ad_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.894734Z", "completed_at": "2024-07-29T18:33:47.901984Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.902819Z", "completed_at": "2024-07-29T18:33:47.902822Z"}], "thread_id": "Thread-1", "execution_time": 0.016108036041259766, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.microsoft_ads.not_null_microsoft_ads__url_report_base_url.c1af50307a", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect base_url\nfrom \"postgres\".\"ad_reporting_docs_microsoft_ads\".\"microsoft_ads__url_report\"\nwhere base_url is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.898705Z", "completed_at": "2024-07-29T18:33:47.903442Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.904366Z", "completed_at": "2024-07-29T18:33:47.904370Z"}], "thread_id": "Thread-3", "execution_time": 0.0066831111907958984, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_microsoft_ads\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.905578Z", "completed_at": "2024-07-29T18:33:47.915875Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.918983Z", "completed_at": "2024-07-29T18:33:47.918989Z"}], "thread_id": "Thread-2", "execution_time": 0.015388965606689453, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.microsoft_ads.not_null_microsoft_ads__campaign_report_campaign_id.67aa50e1f8", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom \"postgres\".\"ad_reporting_docs_microsoft_ads\".\"microsoft_ads__campaign_report\"\nwhere campaign_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.912717Z", "completed_at": "2024-07-29T18:33:47.919349Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.920053Z", "completed_at": "2024-07-29T18:33:47.920057Z"}], "thread_id": "Thread-1", "execution_time": 0.015201807022094727, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.microsoft_ads.not_null_microsoft_ads__keyword_report_keyword_id.da1d648d3b", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect keyword_id\nfrom \"postgres\".\"ad_reporting_docs_microsoft_ads\".\"microsoft_ads__keyword_report\"\nwhere keyword_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.908592Z", "completed_at": "2024-07-29T18:33:47.919529Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.920633Z", "completed_at": "2024-07-29T18:33:47.920637Z"}], "thread_id": "Thread-4", "execution_time": 0.016553878784179688, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_microsoft_ads\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.916072Z", "completed_at": "2024-07-29T18:33:47.920414Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.921466Z", "completed_at": "2024-07-29T18:33:47.921469Z"}], "thread_id": "Thread-3", "execution_time": 0.009108304977416992, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_microsoft_ads\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.922929Z", "completed_at": "2024-07-29T18:33:47.935978Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.936271Z", "completed_at": "2024-07-29T18:33:47.936277Z"}], "thread_id": "Thread-2", "execution_time": 0.015354156494140625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.microsoft_ads.not_null_microsoft_ads__search_report_search_query.fa3625d66d", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect search_query\nfrom \"postgres\".\"ad_reporting_docs_microsoft_ads\".\"microsoft_ads__search_report\"\nwhere search_query is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.933216Z", "completed_at": "2024-07-29T18:33:47.941120Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.941355Z", "completed_at": "2024-07-29T18:33:47.941360Z"}], "thread_id": "Thread-3", "execution_time": 0.014638185501098633, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest.not_null_pinterest_ads__advertiser_report_date_day.aedeceeeca", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_docs_pinterest\".\"pinterest_ads__advertiser_report\"\nwhere date_day is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.930400Z", "completed_at": "2024-07-29T18:33:47.941936Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.942598Z", "completed_at": "2024-07-29T18:33:47.942601Z"}], "thread_id": "Thread-4", "execution_time": 0.019937753677368164, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest.not_null_pinterest_ads__advertiser_report_advertiser_id.13380f0672", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect advertiser_id\nfrom \"postgres\".\"ad_reporting_docs_pinterest\".\"pinterest_ads__advertiser_report\"\nwhere advertiser_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.927241Z", "completed_at": "2024-07-29T18:33:47.942156Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.943141Z", "completed_at": "2024-07-29T18:33:47.943144Z"}], "thread_id": "Thread-1", "execution_time": 0.020939111709594727, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__advertiser_report_source_relation__advertiser_id__date_day.f9cd6d6ce2", "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\".\"ad_reporting_docs_pinterest\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.937425Z", "completed_at": "2024-07-29T18:33:47.942946Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.943946Z", "completed_at": "2024-07-29T18:33:47.943949Z"}], "thread_id": "Thread-2", "execution_time": 0.00703120231628418, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_pinterest\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.944526Z", "completed_at": "2024-07-29T18:33:47.954700Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.958567Z", "completed_at": "2024-07-29T18:33:47.958573Z"}], "thread_id": "Thread-3", "execution_time": 0.016268014907836914, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest.not_null_pinterest_ads__ad_group_report_ad_group_id.134f9ac6c2", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom \"postgres\".\"ad_reporting_docs_pinterest\".\"pinterest_ads__ad_group_report\"\nwhere ad_group_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.948787Z", "completed_at": "2024-07-29T18:33:47.959266Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.959714Z", "completed_at": "2024-07-29T18:33:47.959718Z"}], "thread_id": "Thread-4", "execution_time": 0.012396097183227539, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest.not_null_pinterest_ads__ad_group_report_date_day.ed7c27b8a7", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_docs_pinterest\".\"pinterest_ads__ad_group_report\"\nwhere date_day is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.951812Z", "completed_at": "2024-07-29T18:33:47.960057Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.960921Z", "completed_at": "2024-07-29T18:33:47.960925Z"}], "thread_id": "Thread-1", "execution_time": 0.013107061386108398, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__campaign_report_source_relation__campaign_id__advertiser_id__date_day.4da70e098b", "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\".\"ad_reporting_docs_pinterest\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.954930Z", "completed_at": "2024-07-29T18:33:47.960737Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.964356Z", "completed_at": "2024-07-29T18:33:47.964361Z"}], "thread_id": "Thread-2", "execution_time": 0.01607513427734375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest.not_null_pinterest_ads__campaign_report_campaign_id.8001ea60f2", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom \"postgres\".\"ad_reporting_docs_pinterest\".\"pinterest_ads__campaign_report\"\nwhere campaign_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.961263Z", "completed_at": "2024-07-29T18:33:47.968565Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.969218Z", "completed_at": "2024-07-29T18:33:47.969222Z"}], "thread_id": "Thread-3", "execution_time": 0.009804010391235352, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest.not_null_pinterest_ads__campaign_report_date_day.10ac8272bf", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_docs_pinterest\".\"pinterest_ads__campaign_report\"\nwhere date_day is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.965664Z", "completed_at": "2024-07-29T18:33:47.972924Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.977072Z", "completed_at": "2024-07-29T18:33:47.977077Z"}], "thread_id": "Thread-4", "execution_time": 0.013014078140258789, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_pinterest\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.969790Z", "completed_at": "2024-07-29T18:33:47.980881Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.981614Z", "completed_at": "2024-07-29T18:33:47.981618Z"}], "thread_id": "Thread-1", "execution_time": 0.016236066818237305, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest.not_null_pinterest_ads__keyword_report_date_day.23130e9fba", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_docs_pinterest\".\"pinterest_ads__keyword_report\"\nwhere date_day is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.973160Z", "completed_at": "2024-07-29T18:33:47.981418Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.982396Z", "completed_at": "2024-07-29T18:33:47.982400Z"}], "thread_id": "Thread-2", "execution_time": 0.013689041137695312, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest.not_null_pinterest_ads__keyword_report_keyword_id.0d73460198", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect keyword_id\nfrom \"postgres\".\"ad_reporting_docs_pinterest\".\"pinterest_ads__keyword_report\"\nwhere keyword_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.977987Z", "completed_at": "2024-07-29T18:33:47.982198Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.985873Z", "completed_at": "2024-07-29T18:33:47.985878Z"}], "thread_id": "Thread-3", "execution_time": 0.009153127670288086, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_pinterest\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.983012Z", "completed_at": "2024-07-29T18:33:47.987879Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.994893Z", "completed_at": "2024-07-29T18:33:47.994899Z"}], "thread_id": "Thread-4", "execution_time": 0.013866662979125977, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest.not_null_pinterest_ads__pin_promotion_report_date_day.3128d28cfd", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_docs_pinterest\".\"pinterest_ads__pin_promotion_report\"\nwhere date_day is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.988081Z", "completed_at": "2024-07-29T18:33:47.998504Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:47.999003Z", "completed_at": "2024-07-29T18:33:47.999008Z"}], "thread_id": "Thread-1", "execution_time": 0.012547016143798828, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest.not_null_pinterest_ads__pin_promotion_report_pin_promotion_id.2540e0a561", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect pin_promotion_id\nfrom \"postgres\".\"ad_reporting_docs_pinterest\".\"pinterest_ads__pin_promotion_report\"\nwhere pin_promotion_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.991107Z", "completed_at": "2024-07-29T18:33:47.999782Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.003416Z", "completed_at": "2024-07-29T18:33:48.003420Z"}], "thread_id": "Thread-2", "execution_time": 0.016453981399536133, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_pinterest\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:47.995300Z", "completed_at": "2024-07-29T18:33:47.999984Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.003765Z", "completed_at": "2024-07-29T18:33:48.003768Z"}], "thread_id": "Thread-3", "execution_time": 0.016354084014892578, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest.not_null_pinterest_ads__url_report_date_day.b09048037e", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_docs_pinterest\".\"pinterest_ads__url_report\"\nwhere date_day is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.000200Z", "completed_at": "2024-07-29T18:33:48.004839Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.008444Z", "completed_at": "2024-07-29T18:33:48.008450Z"}], "thread_id": "Thread-4", "execution_time": 0.009796857833862305, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest.not_null_pinterest_ads__url_report_destination_url.0bb7f30502", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect destination_url\nfrom \"postgres\".\"ad_reporting_docs_pinterest\".\"pinterest_ads__url_report\"\nwhere destination_url is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.005053Z", "completed_at": "2024-07-29T18:33:48.009529Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.018439Z", "completed_at": "2024-07-29T18:33:48.018445Z"}], "thread_id": "Thread-1", "execution_time": 0.015316009521484375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest.not_null_pinterest_ads__url_report_pin_promotion_id.0da711ad6a", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect pin_promotion_id\nfrom \"postgres\".\"ad_reporting_docs_pinterest\".\"pinterest_ads__url_report\"\nwhere pin_promotion_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.009738Z", "completed_at": "2024-07-29T18:33:48.022789Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.023890Z", "completed_at": "2024-07-29T18:33:48.023897Z"}], "thread_id": "Thread-2", "execution_time": 0.016026020050048828, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_reddit_ads\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.015183Z", "completed_at": "2024-07-29T18:33:48.023302Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.027778Z", "completed_at": "2024-07-29T18:33:48.027782Z"}], "thread_id": "Thread-3", "execution_time": 0.019619226455688477, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.reddit_ads.not_null_reddit_ads__account_report_account_id.16f11188c5", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom \"postgres\".\"ad_reporting_docs_reddit_ads\".\"reddit_ads__account_report\"\nwhere account_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.019471Z", "completed_at": "2024-07-29T18:33:48.023579Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.028137Z", "completed_at": "2024-07-29T18:33:48.028140Z"}], "thread_id": "Thread-4", "execution_time": 0.009999752044677734, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.reddit_ads.not_null_reddit_ads__account_report_date_day.7b43e6cb90", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_docs_reddit_ads\".\"reddit_ads__account_report\"\nwhere date_day is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.024335Z", "completed_at": "2024-07-29T18:33:48.029667Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.031768Z", "completed_at": "2024-07-29T18:33:48.031775Z"}], "thread_id": "Thread-1", "execution_time": 0.009320974349975586, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_reddit_ads\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.039090Z", "completed_at": "2024-07-29T18:33:48.047195Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.047426Z", "completed_at": "2024-07-29T18:33:48.047432Z"}], "thread_id": "Thread-4", "execution_time": 0.016212940216064453, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_reddit_ads\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.036064Z", "completed_at": "2024-07-29T18:33:48.051318Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.051967Z", "completed_at": "2024-07-29T18:33:48.051975Z"}], "thread_id": "Thread-3", "execution_time": 0.022135019302368164, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.reddit_ads.not_null_reddit_ads__ad_group_report_date_day.6463e6f6f7", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_docs_reddit_ads\".\"reddit_ads__ad_group_report\"\nwhere date_day is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.043068Z", "completed_at": "2024-07-29T18:33:48.051530Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.052364Z", "completed_at": "2024-07-29T18:33:48.052368Z"}], "thread_id": "Thread-1", "execution_time": 0.009986639022827148, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.reddit_ads.not_null_reddit_ads__ad_report_ad_id.1da054a14e", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom \"postgres\".\"ad_reporting_docs_reddit_ads\".\"reddit_ads__ad_report\"\nwhere ad_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.032567Z", "completed_at": "2024-07-29T18:33:48.051758Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.052714Z", "completed_at": "2024-07-29T18:33:48.052717Z"}], "thread_id": "Thread-2", "execution_time": 0.023386716842651367, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.reddit_ads.not_null_reddit_ads__ad_group_report_ad_group_id.057bd60604", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom \"postgres\".\"ad_reporting_docs_reddit_ads\".\"reddit_ads__ad_group_report\"\nwhere ad_group_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.048435Z", "completed_at": "2024-07-29T18:33:48.053038Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.053971Z", "completed_at": "2024-07-29T18:33:48.053974Z"}], "thread_id": "Thread-4", "execution_time": 0.005985736846923828, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.reddit_ads.not_null_reddit_ads__ad_report_date_day.608b21c69a", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_docs_reddit_ads\".\"reddit_ads__ad_report\"\nwhere date_day is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.061891Z", "completed_at": "2024-07-29T18:33:48.069074Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.069288Z", "completed_at": "2024-07-29T18:33:48.069292Z"}], "thread_id": "Thread-2", "execution_time": 0.014612913131713867, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.reddit_ads.not_null_reddit_ads__campaign_report_date_day.f79cca4131", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_docs_reddit_ads\".\"reddit_ads__campaign_report\"\nwhere date_day is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.056048Z", "completed_at": "2024-07-29T18:33:48.069916Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.070456Z", "completed_at": "2024-07-29T18:33:48.070460Z"}], "thread_id": "Thread-3", "execution_time": 0.016216039657592773, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_reddit_ads\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.059094Z", "completed_at": "2024-07-29T18:33:48.070832Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.071688Z", "completed_at": "2024-07-29T18:33:48.071692Z"}], "thread_id": "Thread-1", "execution_time": 0.017215967178344727, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.reddit_ads.not_null_reddit_ads__campaign_report_campaign_id.f5491a0b49", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom \"postgres\".\"ad_reporting_docs_reddit_ads\".\"reddit_ads__campaign_report\"\nwhere campaign_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.065764Z", "completed_at": "2024-07-29T18:33:48.071250Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.074876Z", "completed_at": "2024-07-29T18:33:48.074881Z"}], "thread_id": "Thread-4", "execution_time": 0.01911616325378418, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_reddit_ads\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.072022Z", "completed_at": "2024-07-29T18:33:48.079857Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.083930Z", "completed_at": "2024-07-29T18:33:48.083935Z"}], "thread_id": "Thread-2", "execution_time": 0.013856172561645508, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.reddit_ads.not_null_reddit_ads__url_report_ad_id.8ff83da2b0", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom \"postgres\".\"ad_reporting_docs_reddit_ads\".\"reddit_ads__url_report\"\nwhere ad_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.076660Z", "completed_at": "2024-07-29T18:33:48.087558Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.088042Z", "completed_at": "2024-07-29T18:33:48.088047Z"}], "thread_id": "Thread-3", "execution_time": 0.012851238250732422, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.reddit_ads.not_null_reddit_ads__url_report_base_url.2f585bebcb", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect base_url\nfrom \"postgres\".\"ad_reporting_docs_reddit_ads\".\"reddit_ads__url_report\"\nwhere base_url is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.080298Z", "completed_at": "2024-07-29T18:33:48.088399Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.089067Z", "completed_at": "2024-07-29T18:33:48.089071Z"}], "thread_id": "Thread-1", "execution_time": 0.012923240661621094, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.reddit_ads.not_null_reddit_ads__url_report_date_day.4b0f6363da", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_docs_reddit_ads\".\"reddit_ads__url_report\"\nwhere date_day is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.084325Z", "completed_at": "2024-07-29T18:33:48.089415Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.093122Z", "completed_at": "2024-07-29T18:33:48.093127Z"}], "thread_id": "Thread-4", "execution_time": 0.016746044158935547, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads.dbt_utils_unique_combination_of_columns_snapchat_ads__account_report_source_relation__ad_account_id__date_day.654a687cf1", "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\".\"ad_reporting_docs_snapchat_ads\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.089639Z", "completed_at": "2024-07-29T18:33:48.094203Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.097647Z", "completed_at": "2024-07-29T18:33:48.097651Z"}], "thread_id": "Thread-2", "execution_time": 0.009917736053466797, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads.not_null_snapchat_ads__account_report_ad_account_id.589c81966b", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_account_id\nfrom \"postgres\".\"ad_reporting_docs_snapchat_ads\".\"snapchat_ads__account_report\"\nwhere ad_account_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.094388Z", "completed_at": "2024-07-29T18:33:48.105205Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.105729Z", "completed_at": "2024-07-29T18:33:48.105734Z"}], "thread_id": "Thread-3", "execution_time": 0.013162851333618164, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads.not_null_snapchat_ads__account_report_date_day.688d7ed260", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_docs_snapchat_ads\".\"snapchat_ads__account_report\"\nwhere date_day is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.098021Z", "completed_at": "2024-07-29T18:33:48.106071Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.106731Z", "completed_at": "2024-07-29T18:33:48.106735Z"}], "thread_id": "Thread-1", "execution_time": 0.013064861297607422, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads.dbt_utils_unique_combination_of_columns_snapchat_ads__ad_squad_report_source_relation__ad_squad_id__date_day.b1a26a5bb4", "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\".\"ad_reporting_docs_snapchat_ads\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.102355Z", "completed_at": "2024-07-29T18:33:48.107120Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.110674Z", "completed_at": "2024-07-29T18:33:48.110679Z"}], "thread_id": "Thread-4", "execution_time": 0.013314247131347656, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads.not_null_snapchat_ads__ad_squad_report_ad_squad_id.424c0bbffe", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_squad_id\nfrom \"postgres\".\"ad_reporting_docs_snapchat_ads\".\"snapchat_ads__ad_squad_report\"\nwhere ad_squad_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.107311Z", "completed_at": "2024-07-29T18:33:48.111752Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.115275Z", "completed_at": "2024-07-29T18:33:48.115279Z"}], "thread_id": "Thread-2", "execution_time": 0.009917974472045898, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads.not_null_snapchat_ads__ad_squad_report_date_day.39118ca639", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_docs_snapchat_ads\".\"snapchat_ads__ad_squad_report\"\nwhere date_day is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.111935Z", "completed_at": "2024-07-29T18:33:48.122632Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.123346Z", "completed_at": "2024-07-29T18:33:48.123353Z"}], "thread_id": "Thread-3", "execution_time": 0.013215065002441406, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads.dbt_utils_unique_combination_of_columns_snapchat_ads__campaign_report_source_relation__campaign_id__date_day.557487ad6a", "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\".\"ad_reporting_docs_snapchat_ads\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.115658Z", "completed_at": "2024-07-29T18:33:48.123148Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.123918Z", "completed_at": "2024-07-29T18:33:48.123921Z"}], "thread_id": "Thread-1", "execution_time": 0.01268911361694336, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads.not_null_snapchat_ads__campaign_report_campaign_id.19fd7135ac", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom \"postgres\".\"ad_reporting_docs_snapchat_ads\".\"snapchat_ads__campaign_report\"\nwhere campaign_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.119822Z", "completed_at": "2024-07-29T18:33:48.124502Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.136528Z", "completed_at": "2024-07-29T18:33:48.136533Z"}], "thread_id": "Thread-4", "execution_time": 0.021555185317993164, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads.not_null_snapchat_ads__campaign_report_date_day.4e4e31223b", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_docs_snapchat_ads\".\"snapchat_ads__campaign_report\"\nwhere date_day is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.124704Z", "completed_at": "2024-07-29T18:33:48.199487Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.216672Z", "completed_at": "2024-07-29T18:33:48.216679Z"}], "thread_id": "Thread-2", "execution_time": 0.09386396408081055, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snapchat_ads.snapchat_ads__ad_report", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__snapchat_ads__creative_history_prep as (\n\nwith base as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"stg_snapchat_ads__creative_history\"\n where is_most_recent_record = true\n\n), url_tags as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"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 from \"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"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\".\"ad_reporting_docs_snapchat_ads_source\".\"stg_snapchat_ads__ad_account_history\"\n where is_most_recent_record = true\n\n), ads as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"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 \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", "relation_name": "\"postgres\".\"ad_reporting_docs_snapchat_ads\".\"snapchat_ads__ad_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.137848Z", "completed_at": "2024-07-29T18:33:48.223878Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.224077Z", "completed_at": "2024-07-29T18:33:48.224081Z"}], "thread_id": "Thread-3", "execution_time": 0.08786511421203613, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snapchat_ads.snapchat_ads__url_report", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__snapchat_ads__creative_history_prep as (\n\nwith base as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"stg_snapchat_ads__creative_history\"\n where is_most_recent_record = true\n\n), url_tags as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"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 from \"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"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\".\"ad_reporting_docs_snapchat_ads_source\".\"stg_snapchat_ads__ad_account_history\"\n where is_most_recent_record = true\n\n), ads as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"stg_snapchat_ads__ad_history\"\n where is_most_recent_record = true\n\n), ad_squads as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"stg_snapchat_ads__ad_squad_history\"\n where is_most_recent_record = true\n\n), campaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_snapchat_ads_source\".\"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 \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", "relation_name": "\"postgres\".\"ad_reporting_docs_snapchat_ads\".\"snapchat_ads__url_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.213600Z", "completed_at": "2024-07-29T18:33:48.228831Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.229053Z", "completed_at": "2024-07-29T18:33:48.229058Z"}], "thread_id": "Thread-1", "execution_time": 0.09219002723693848, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_tiktok_ads\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.217651Z", "completed_at": "2024-07-29T18:33:48.233071Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.233303Z", "completed_at": "2024-07-29T18:33:48.233308Z"}], "thread_id": "Thread-4", "execution_time": 0.02119922637939453, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.tiktok_ads.not_null_tiktok_ads__ad_group_report_ad_group_id.17fb8710f4", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom \"postgres\".\"ad_reporting_docs_tiktok_ads\".\"tiktok_ads__ad_group_report\"\nwhere ad_group_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.221073Z", "completed_at": "2024-07-29T18:33:48.233901Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.234562Z", "completed_at": "2024-07-29T18:33:48.234571Z"}], "thread_id": "Thread-2", "execution_time": 0.014159202575683594, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.tiktok_ads.not_null_tiktok_ads__ad_group_report_date_day.e39164964e", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_docs_tiktok_ads\".\"tiktok_ads__ad_group_report\"\nwhere date_day is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.225036Z", "completed_at": "2024-07-29T18:33:48.234132Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.235162Z", "completed_at": "2024-07-29T18:33:48.235165Z"}], "thread_id": "Thread-3", "execution_time": 0.010584831237792969, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.tiktok_ads.dbt_utils_unique_combination_of_columns_tiktok_ads__campaign_report_source_relation__campaign_id__advertiser_id__date_day.98200e9b0f", "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\".\"ad_reporting_docs_tiktok_ads\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.230045Z", "completed_at": "2024-07-29T18:33:48.234963Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.235971Z", "completed_at": "2024-07-29T18:33:48.235974Z"}], "thread_id": "Thread-1", "execution_time": 0.0063779354095458984, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.tiktok_ads.not_null_tiktok_ads__campaign_report_campaign_id.8a2b0c8ef8", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom \"postgres\".\"ad_reporting_docs_tiktok_ads\".\"tiktok_ads__campaign_report\"\nwhere campaign_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.236538Z", "completed_at": "2024-07-29T18:33:48.244358Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.247573Z", "completed_at": "2024-07-29T18:33:48.247578Z"}], "thread_id": "Thread-4", "execution_time": 0.013302087783813477, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.tiktok_ads.not_null_tiktok_ads__campaign_report_date_day.3807b0e836", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_docs_tiktok_ads\".\"tiktok_ads__campaign_report\"\nwhere date_day is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.240724Z", "completed_at": "2024-07-29T18:33:48.251076Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.251715Z", "completed_at": "2024-07-29T18:33:48.251720Z"}], "thread_id": "Thread-2", "execution_time": 0.012404203414916992, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_tiktok_ads\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.244763Z", "completed_at": "2024-07-29T18:33:48.251284Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.252268Z", "completed_at": "2024-07-29T18:33:48.252272Z"}], "thread_id": "Thread-3", "execution_time": 0.012479782104492188, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.tiktok_ads.not_null_tiktok_ads__ad_report_ad_id.2d8166e707", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom \"postgres\".\"ad_reporting_docs_tiktok_ads\".\"tiktok_ads__ad_report\"\nwhere ad_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.247955Z", "completed_at": "2024-07-29T18:33:48.252069Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.253038Z", "completed_at": "2024-07-29T18:33:48.253041Z"}], "thread_id": "Thread-1", "execution_time": 0.01279306411743164, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.tiktok_ads.not_null_tiktok_ads__ad_report_date_day.d61ee4a5ed", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_docs_tiktok_ads\".\"tiktok_ads__ad_report\"\nwhere date_day is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.253619Z", "completed_at": "2024-07-29T18:33:48.264515Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.267730Z", "completed_at": "2024-07-29T18:33:48.267736Z"}], "thread_id": "Thread-4", "execution_time": 0.016328096389770508, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.tiktok_ads.dbt_utils_unique_combination_of_columns_tiktok_ads__advertiser_report_source_relation__advertiser_id__date_day.1797053b3d", "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\".\"ad_reporting_docs_tiktok_ads\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.257911Z", "completed_at": "2024-07-29T18:33:48.268652Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.269141Z", "completed_at": "2024-07-29T18:33:48.269145Z"}], "thread_id": "Thread-2", "execution_time": 0.012679815292358398, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.tiktok_ads.not_null_tiktok_ads__advertiser_report_advertiser_id.f956c568ce", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect advertiser_id\nfrom \"postgres\".\"ad_reporting_docs_tiktok_ads\".\"tiktok_ads__advertiser_report\"\nwhere advertiser_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.261733Z", "completed_at": "2024-07-29T18:33:48.269477Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.272984Z", "completed_at": "2024-07-29T18:33:48.272988Z"}], "thread_id": "Thread-3", "execution_time": 0.016026973724365234, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.tiktok_ads.not_null_tiktok_ads__advertiser_report_date_day.1276998c99", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_docs_tiktok_ads\".\"tiktok_ads__advertiser_report\"\nwhere date_day is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.264752Z", "completed_at": "2024-07-29T18:33:48.269673Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.273332Z", "completed_at": "2024-07-29T18:33:48.273335Z"}], "thread_id": "Thread-1", "execution_time": 0.015903949737548828, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_tiktok_ads\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.269874Z", "completed_at": "2024-07-29T18:33:48.274476Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.275298Z", "completed_at": "2024-07-29T18:33:48.275301Z"}], "thread_id": "Thread-4", "execution_time": 0.0069200992584228516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.tiktok_ads.not_null_tiktok_ads__url_report_ad_id.6c41067bd0", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom \"postgres\".\"ad_reporting_docs_tiktok_ads\".\"tiktok_ads__url_report\"\nwhere ad_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.280440Z", "completed_at": "2024-07-29T18:33:48.289993Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.290221Z", "completed_at": "2024-07-29T18:33:48.290228Z"}], "thread_id": "Thread-3", "execution_time": 0.015438079833984375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.tiktok_ads.not_null_tiktok_ads__url_report_date_day.d593573eff", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_docs_tiktok_ads\".\"tiktok_ads__url_report\"\nwhere date_day is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.275617Z", "completed_at": "2024-07-29T18:33:48.291076Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.291713Z", "completed_at": "2024-07-29T18:33:48.291716Z"}], "thread_id": "Thread-2", "execution_time": 0.018056869506835938, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.tiktok_ads.not_null_tiktok_ads__url_report_base_url.37afef2e1b", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect base_url\nfrom \"postgres\".\"ad_reporting_docs_tiktok_ads\".\"tiktok_ads__url_report\"\nwhere base_url is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.287018Z", "completed_at": "2024-07-29T18:33:48.291504Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.295895Z", "completed_at": "2024-07-29T18:33:48.295900Z"}], "thread_id": "Thread-4", "execution_time": 0.009546041488647461, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads.not_null_twitter_ads__campaign_report_campaign_id.03b1c451b8", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom \"postgres\".\"ad_reporting_docs_twitter_ads\".\"twitter_ads__campaign_report\"\nwhere campaign_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.283425Z", "completed_at": "2024-07-29T18:33:48.295680Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.296528Z", "completed_at": "2024-07-29T18:33:48.296531Z"}], "thread_id": "Thread-1", "execution_time": 0.02150893211364746, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_twitter_ads\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.292060Z", "completed_at": "2024-07-29T18:33:48.297853Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.298667Z", "completed_at": "2024-07-29T18:33:48.298671Z"}], "thread_id": "Thread-3", "execution_time": 0.007899761199951172, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads.not_null_twitter_ads__campaign_report_date_day.2b30b279b0", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_docs_twitter_ads\".\"twitter_ads__campaign_report\"\nwhere date_day is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.298992Z", "completed_at": "2024-07-29T18:33:48.312309Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.312527Z", "completed_at": "2024-07-29T18:33:48.312532Z"}], "thread_id": "Thread-2", "execution_time": 0.015417814254760742, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads.not_null_twitter_ads__campaign_report_placement.c66d252e82", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect placement\nfrom \"postgres\".\"ad_reporting_docs_twitter_ads\".\"twitter_ads__campaign_report\"\nwhere placement is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.302055Z", "completed_at": "2024-07-29T18:33:48.313128Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.313788Z", "completed_at": "2024-07-29T18:33:48.313792Z"}], "thread_id": "Thread-4", "execution_time": 0.016203880310058594, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_twitter_ads\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.305265Z", "completed_at": "2024-07-29T18:33:48.313579Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.314530Z", "completed_at": "2024-07-29T18:33:48.314533Z"}], "thread_id": "Thread-1", "execution_time": 0.016326189041137695, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads.not_null_twitter_ads__line_item_report_date_day.86c934e8ce", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_docs_twitter_ads\".\"twitter_ads__line_item_report\"\nwhere date_day is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.308620Z", "completed_at": "2024-07-29T18:33:48.314128Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.315093Z", "completed_at": "2024-07-29T18:33:48.315097Z"}], "thread_id": "Thread-3", "execution_time": 0.00704503059387207, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads.not_null_twitter_ads__line_item_report_line_item_id.0462d58211", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect line_item_id\nfrom \"postgres\".\"ad_reporting_docs_twitter_ads\".\"twitter_ads__line_item_report\"\nwhere line_item_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.315425Z", "completed_at": "2024-07-29T18:33:48.326134Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.363729Z", "completed_at": "2024-07-29T18:33:48.363735Z"}], "thread_id": "Thread-2", "execution_time": 0.050438880920410156, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads.not_null_twitter_ads__line_item_report_placement.f103369312", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect placement\nfrom \"postgres\".\"ad_reporting_docs_twitter_ads\".\"twitter_ads__line_item_report\"\nwhere placement is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.364114Z", "completed_at": "2024-07-29T18:33:48.372089Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.372876Z", "completed_at": "2024-07-29T18:33:48.372880Z"}], "thread_id": "Thread-3", "execution_time": 0.053510189056396484, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads.not_null_twitter_ads__account_report_account_id.90d5808908", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom \"postgres\".\"ad_reporting_docs_twitter_ads\".\"twitter_ads__account_report\"\nwhere account_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.357497Z", "completed_at": "2024-07-29T18:33:48.372288Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.373219Z", "completed_at": "2024-07-29T18:33:48.373222Z"}], "thread_id": "Thread-1", "execution_time": 0.0542912483215332, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__account_report_source_relation__date_day__account_id__placement.e6a884489c", "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\".\"ad_reporting_docs_twitter_ads\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.367824Z", "completed_at": "2024-07-29T18:33:48.372677Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.376377Z", "completed_at": "2024-07-29T18:33:48.376381Z"}], "thread_id": "Thread-2", "execution_time": 0.009047985076904297, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads.not_null_twitter_ads__account_report_date_day.84896c5846", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_docs_twitter_ads\".\"twitter_ads__account_report\"\nwhere date_day is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.373568Z", "completed_at": "2024-07-29T18:33:48.378290Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.379063Z", "completed_at": "2024-07-29T18:33:48.379066Z"}], "thread_id": "Thread-4", "execution_time": 0.007297992706298828, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads.not_null_twitter_ads__account_report_placement.157dcb6194", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect placement\nfrom \"postgres\".\"ad_reporting_docs_twitter_ads\".\"twitter_ads__account_report\"\nwhere placement is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.385097Z", "completed_at": "2024-07-29T18:33:48.392367Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.392791Z", "completed_at": "2024-07-29T18:33:48.392797Z"}], "thread_id": "Thread-2", "execution_time": 0.014847040176391602, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads.not_null_twitter_ads__promoted_tweet_report_promoted_tweet_id.5df08e154e", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect promoted_tweet_id\nfrom \"postgres\".\"ad_reporting_docs_twitter_ads\".\"twitter_ads__promoted_tweet_report\"\nwhere promoted_tweet_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.382322Z", "completed_at": "2024-07-29T18:33:48.392590Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.393385Z", "completed_at": "2024-07-29T18:33:48.393389Z"}], "thread_id": "Thread-1", "execution_time": 0.015666961669921875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads.not_null_twitter_ads__promoted_tweet_report_placement.d89c9b27e5", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect placement\nfrom \"postgres\".\"ad_reporting_docs_twitter_ads\".\"twitter_ads__promoted_tweet_report\"\nwhere placement is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.379389Z", "completed_at": "2024-07-29T18:33:48.393153Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.394172Z", "completed_at": "2024-07-29T18:33:48.394175Z"}], "thread_id": "Thread-3", "execution_time": 0.016705989837646484, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_twitter_ads\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.389493Z", "completed_at": "2024-07-29T18:33:48.393983Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.394974Z", "completed_at": "2024-07-29T18:33:48.394978Z"}], "thread_id": "Thread-4", "execution_time": 0.006052732467651367, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__ad_report_source_relation__date_day__ad_id.5c0ccedb91", "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\".\"ad_reporting_docs_amazon_ads\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.396638Z", "completed_at": "2024-07-29T18:33:48.431066Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.431462Z", "completed_at": "2024-07-29T18:33:48.431468Z"}], "thread_id": "Thread-2", "execution_time": 0.036787986755371094, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.amazon_ads.not_null_amazon_ads__ad_report_ad_id.93728159b3", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom \"postgres\".\"ad_reporting_docs_amazon_ads\".\"amazon_ads__ad_report\"\nwhere ad_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.422980Z", "completed_at": "2024-07-29T18:33:48.435487Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.436379Z", "completed_at": "2024-07-29T18:33:48.436383Z"}], "thread_id": "Thread-3", "execution_time": 0.04020977020263672, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__ad_group_report_source_relation__date_day__ad_group_id.9f5387d4e0", "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\".\"ad_reporting_docs_amazon_ads\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.427657Z", "completed_at": "2024-07-29T18:33:48.435683Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.436720Z", "completed_at": "2024-07-29T18:33:48.436723Z"}], "thread_id": "Thread-4", "execution_time": 0.0372929573059082, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.amazon_ads.not_null_amazon_ads__ad_group_report_ad_group_id.8a23dc123a", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom \"postgres\".\"ad_reporting_docs_amazon_ads\".\"amazon_ads__ad_group_report\"\nwhere ad_group_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.457336Z", "completed_at": "2024-07-29T18:33:48.477144Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.480255Z", "completed_at": "2024-07-29T18:33:48.480262Z"}], "thread_id": "Thread-1", "execution_time": 0.04326295852661133, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__campaign_report_source_relation__date_day__campaign_id.0fcead4f41", "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\".\"ad_reporting_docs_amazon_ads\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.461167Z", "completed_at": "2024-07-29T18:33:48.481195Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.482176Z", "completed_at": "2024-07-29T18:33:48.482180Z"}], "thread_id": "Thread-3", "execution_time": 0.025444984436035156, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.amazon_ads.not_null_amazon_ads__campaign_report_campaign_id.a9cabadd7c", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom \"postgres\".\"ad_reporting_docs_amazon_ads\".\"amazon_ads__campaign_report\"\nwhere campaign_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.482513Z", "completed_at": "2024-07-29T18:33:48.490513Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.504576Z", "completed_at": "2024-07-29T18:33:48.504582Z"}], "thread_id": "Thread-2", "execution_time": 0.023945331573486328, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__keyword_report_source_relation__date_day__keyword_id.34f042afc1", "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\".\"ad_reporting_docs_amazon_ads\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.487021Z", "completed_at": "2024-07-29T18:33:48.504361Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.505047Z", "completed_at": "2024-07-29T18:33:48.505051Z"}], "thread_id": "Thread-1", "execution_time": 0.02315497398376465, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.amazon_ads.not_null_amazon_ads__keyword_report_keyword_id.303f680e4a", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect keyword_id\nfrom \"postgres\".\"ad_reporting_docs_amazon_ads\".\"amazon_ads__keyword_report\"\nwhere keyword_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.500773Z", "completed_at": "2024-07-29T18:33:48.505975Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.506923Z", "completed_at": "2024-07-29T18:33:48.506927Z"}], "thread_id": "Thread-3", "execution_time": 0.017236948013305664, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__search_report_source_relation__date_day__search_term__keyword_id.21a027f105", "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\".\"ad_reporting_docs_amazon_ads\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.511428Z", "completed_at": "2024-07-29T18:33:48.524092Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.524546Z", "completed_at": "2024-07-29T18:33:48.524552Z"}], "thread_id": "Thread-1", "execution_time": 0.017911911010742188, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.facebook_ads.facebook_ads__url_report", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_facebook_ads_source\".\"stg_facebook_ads__basic_ad\"\n\n), \n\ncreatives as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_facebook_ads\".\"int_facebook_ads__creative_history\"\n\n), \n\naccounts as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_facebook_ads_source\".\"stg_facebook_ads__account_history\"\n where is_most_recent_record = true\n\n), \n\nads as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_facebook_ads_source\".\"stg_facebook_ads__ad_history\"\n where is_most_recent_record = true\n\n), \n\nad_sets as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_facebook_ads_source\".\"stg_facebook_ads__ad_set_history\"\n where is_most_recent_record = true\n\n), \n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_docs_facebook_ads_source\".\"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\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 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", "relation_name": "\"postgres\".\"ad_reporting_docs_facebook_ads\".\"facebook_ads__url_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.508299Z", "completed_at": "2024-07-29T18:33:48.524313Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.524929Z", "completed_at": "2024-07-29T18:33:48.524933Z"}], "thread_id": "Thread-2", "execution_time": 0.018806934356689453, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.amazon_ads.not_null_amazon_ads__search_report_search_term.3c23d4658a", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect search_term\nfrom \"postgres\".\"ad_reporting_docs_amazon_ads\".\"amazon_ads__search_report\"\nwhere search_term is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.520304Z", "completed_at": "2024-07-29T18:33:48.525836Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.526744Z", "completed_at": "2024-07-29T18:33:48.526748Z"}], "thread_id": "Thread-3", "execution_time": 0.01026010513305664, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads.not_null_twitter_ads__url_report_base_url.dfd7ab549e", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect base_url\nfrom \"postgres\".\"ad_reporting_docs_twitter_ads\".\"twitter_ads__url_report\"\nwhere base_url is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.517289Z", "completed_at": "2024-07-29T18:33:48.526028Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.527081Z", "completed_at": "2024-07-29T18:33:48.527084Z"}], "thread_id": "Thread-4", "execution_time": 0.015948057174682617, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_twitter_ads\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.528292Z", "completed_at": "2024-07-29T18:33:48.544225Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.556898Z", "completed_at": "2024-07-29T18:33:48.556905Z"}], "thread_id": "Thread-1", "execution_time": 0.03067922592163086, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads.not_null_twitter_ads__url_report_date_day.33fcb7e04b", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_docs_twitter_ads\".\"twitter_ads__url_report\"\nwhere date_day is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.531249Z", "completed_at": "2024-07-29T18:33:48.544498Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.564933Z", "completed_at": "2024-07-29T18:33:48.564937Z"}], "thread_id": "Thread-2", "execution_time": 0.03845977783203125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads.not_null_twitter_ads__url_report_placement.92ca3b192e", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect placement\nfrom \"postgres\".\"ad_reporting_docs_twitter_ads\".\"twitter_ads__url_report\"\nwhere placement is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.535041Z", "completed_at": "2024-07-29T18:33:48.565745Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.566731Z", "completed_at": "2024-07-29T18:33:48.566735Z"}], "thread_id": "Thread-3", "execution_time": 0.03278684616088867, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads.not_null_twitter_ads__url_report_promoted_tweet_id.d690f99143", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect promoted_tweet_id\nfrom \"postgres\".\"ad_reporting_docs_twitter_ads\".\"twitter_ads__url_report\"\nwhere promoted_tweet_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.572034Z", "completed_at": "2024-07-29T18:33:48.581070Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.581372Z", "completed_at": "2024-07-29T18:33:48.581378Z"}], "thread_id": "Thread-2", "execution_time": 0.014396905899047852, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads.not_null_snapchat_ads__ad_report_ad_id.9000850744", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom \"postgres\".\"ad_reporting_docs_snapchat_ads\".\"snapchat_ads__ad_report\"\nwhere ad_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.568401Z", "completed_at": "2024-07-29T18:33:48.586103Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.586352Z", "completed_at": "2024-07-29T18:33:48.586357Z"}], "thread_id": "Thread-1", "execution_time": 0.019926071166992188, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads.dbt_utils_unique_combination_of_columns_snapchat_ads__ad_report_source_relation__ad_id__date_day.9116e93fba", "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\".\"ad_reporting_docs_snapchat_ads\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.582411Z", "completed_at": "2024-07-29T18:33:48.587482Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.591011Z", "completed_at": "2024-07-29T18:33:48.591016Z"}], "thread_id": "Thread-2", "execution_time": 0.009072065353393555, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads.not_null_snapchat_ads__url_report_ad_id.ecbdfc0d78", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom \"postgres\".\"ad_reporting_docs_snapchat_ads\".\"snapchat_ads__url_report\"\nwhere ad_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.575328Z", "completed_at": "2024-07-29T18:33:48.587676Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.591378Z", "completed_at": "2024-07-29T18:33:48.591381Z"}], "thread_id": "Thread-4", "execution_time": 0.02324676513671875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads.not_null_snapchat_ads__ad_report_date_day.7c5350c8fe", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_docs_snapchat_ads\".\"snapchat_ads__ad_report\"\nwhere date_day is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.578093Z", "completed_at": "2024-07-29T18:33:48.587854Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.591718Z", "completed_at": "2024-07-29T18:33:48.591721Z"}], "thread_id": "Thread-3", "execution_time": 0.019976139068603516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads.dbt_utils_unique_combination_of_columns_snapchat_ads__url_report_source_relation__ad_id__date_day.86e3504c07", "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\".\"ad_reporting_docs_snapchat_ads\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.588040Z", "completed_at": "2024-07-29T18:33:48.593298Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.594166Z", "completed_at": "2024-07-29T18:33:48.594169Z"}], "thread_id": "Thread-1", "execution_time": 0.0071868896484375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads.not_null_snapchat_ads__url_report_base_url.15676dc1de", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect base_url\nfrom \"postgres\".\"ad_reporting_docs_snapchat_ads\".\"snapchat_ads__url_report\"\nwhere base_url is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.594690Z", "completed_at": "2024-07-29T18:33:48.610965Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.611586Z", "completed_at": "2024-07-29T18:33:48.611591Z"}], "thread_id": "Thread-2", "execution_time": 0.01879596710205078, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads.not_null_snapchat_ads__url_report_date_day.bcbe87a7f6", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_docs_snapchat_ads\".\"snapchat_ads__url_report\"\nwhere date_day is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.597496Z", "completed_at": "2024-07-29T18:33:48.611173Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.611950Z", "completed_at": "2024-07-29T18:33:48.611954Z"}], "thread_id": "Thread-4", "execution_time": 0.01891922950744629, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.ad_reporting.ad_reporting__account_report", "compiled": true, "compiled_code": "\n\n\nwith __dbt__cte__int_ad_reporting__account_report as (\n\n\n\nwith\n\n\ntwitter_ads as (\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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_twitter_ads\".\"twitter_ads__account_report\"\n\n),\n\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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_facebook_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_google_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_microsoft_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_apple_search_ads\".\"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(impressions as integer) as impressions\n\n ,cast(cost as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_linkedin_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_pinterest\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_snapchat_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_tiktok_ads\".\"tiktok_ads__advertiser_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(impressions as integer) as impressions\n\n ,cast(cost as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_amazon_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_reddit_ads\".\"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\n \n\n\n\n\n\n from base\n group by 1,2,3,4,5\n)\n\nselect *\nfrom aggregated", "relation_name": "\"postgres\".\"ad_reporting_docs_ad_reporting\".\"ad_reporting__account_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.604198Z", "completed_at": "2024-07-29T18:33:48.617841Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.619013Z", "completed_at": "2024-07-29T18:33:48.619017Z"}], "thread_id": "Thread-3", "execution_time": 0.025589942932128906, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.ad_reporting.ad_reporting__ad_group_report", "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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_google_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_microsoft_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_apple_search_ads\".\"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(impressions as integer) as impressions\n\n ,cast(cost as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_linkedin_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_facebook_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_pinterest\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_snapchat_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_tiktok_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_twitter_ads\".\"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(impressions as integer) as impressions\n\n ,cast(cost as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_amazon_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_reddit_ads\".\"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\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", "relation_name": "\"postgres\".\"ad_reporting_docs_ad_reporting\".\"ad_reporting__ad_group_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.612313Z", "completed_at": "2024-07-29T18:33:48.620717Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.635007Z", "completed_at": "2024-07-29T18:33:48.635013Z"}], "thread_id": "Thread-1", "execution_time": 0.024350404739379883, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.ad_reporting.ad_reporting__campaign_report", "compiled": true, "compiled_code": "\n\n\nwith __dbt__cte__int_ad_reporting__campaign_report as (\n\n\n\nwith\n\n\ntwitter_ads as (\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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_twitter_ads\".\"twitter_ads__campaign_report\"\n\n),\n\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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_facebook_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_google_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_microsoft_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_apple_search_ads\".\"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(impressions as integer) as impressions\n\n ,cast(cost as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_linkedin_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_pinterest\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_snapchat_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_tiktok_ads\".\"tiktok_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(impressions as integer) as impressions\n\n ,cast(cost as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_amazon_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_reddit_ads\".\"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\n \n\n\n\n\n\n from base\n group by 1,2,3,4,5,6,7\n)\n\nselect *\nfrom aggregated", "relation_name": "\"postgres\".\"ad_reporting_docs_ad_reporting\".\"ad_reporting__campaign_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.621116Z", "completed_at": "2024-07-29T18:33:48.650221Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.662762Z", "completed_at": "2024-07-29T18:33:48.662768Z"}], "thread_id": "Thread-2", "execution_time": 0.04337501525878906, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.ad_reporting.ad_reporting__keyword_report", "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(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\".\"ad_reporting_docs_apple_search_ads\".\"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(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\".\"ad_reporting_docs_google_ads\".\"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(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\".\"ad_reporting_docs_microsoft_ads\".\"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(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\".\"ad_reporting_docs_pinterest\".\"pinterest_ads__keyword_report\"\n\n),\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(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\".\"ad_reporting_docs_amazon_ads\".\"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\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", "relation_name": "\"postgres\".\"ad_reporting_docs_ad_reporting\".\"ad_reporting__keyword_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.628713Z", "completed_at": "2024-07-29T18:33:48.650441Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.665255Z", "completed_at": "2024-07-29T18:33:48.665259Z"}], "thread_id": "Thread-4", "execution_time": 0.045619964599609375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.ad_reporting.ad_reporting__search_report", "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(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\".\"ad_reporting_docs_microsoft_ads\".\"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(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\".\"ad_reporting_docs_apple_search_ads\".\"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(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\".\"ad_reporting_docs_amazon_ads\".\"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\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", "relation_name": "\"postgres\".\"ad_reporting_docs_ad_reporting\".\"ad_reporting__search_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.666395Z", "completed_at": "2024-07-29T18:33:48.671050Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.681734Z", "completed_at": "2024-07-29T18:33:48.681740Z"}], "thread_id": "Thread-1", "execution_time": 0.031171083450317383, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_facebook_ads\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.671265Z", "completed_at": "2024-07-29T18:33:48.686294Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.686899Z", "completed_at": "2024-07-29T18:33:48.686904Z"}], "thread_id": "Thread-2", "execution_time": 0.017410993576049805, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.facebook_ads.not_null_facebook_ads__url_report_base_url.b7757e50be", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect base_url\nfrom \"postgres\".\"ad_reporting_docs_facebook_ads\".\"facebook_ads__url_report\"\nwhere base_url is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.674287Z", "completed_at": "2024-07-29T18:33:48.686488Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.687254Z", "completed_at": "2024-07-29T18:33:48.687257Z"}], "thread_id": "Thread-4", "execution_time": 0.017487049102783203, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.ad_reporting.ad_reporting__ad_report", "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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_google_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_microsoft_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_apple_search_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_facebook_ads\".\"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(impressions as integer) as impressions\n\n ,cast(cost as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_linkedin_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_pinterest\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_snapchat_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_tiktok_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_twitter_ads\".\"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(impressions as integer) as impressions\n\n ,cast(cost as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_amazon_ads\".\"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(impressions as integer) as impressions\n\n ,cast(spend as float) as spend\n\n \nfrom \"postgres\".\"ad_reporting_docs_reddit_ads\".\"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 \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", "relation_name": "\"postgres\".\"ad_reporting_docs_ad_reporting\".\"ad_reporting__ad_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.682734Z", "completed_at": "2024-07-29T18:33:48.709287Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.710113Z", "completed_at": "2024-07-29T18:33:48.710120Z"}], "thread_id": "Thread-3", "execution_time": 0.028708934783935547, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__account_report_source_relation__platform__date_day__account_id.4cb64b5631", "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\".\"ad_reporting_docs_ad_reporting\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.695901Z", "completed_at": "2024-07-29T18:33:48.709519Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.710512Z", "completed_at": "2024-07-29T18:33:48.710516Z"}], "thread_id": "Thread-4", "execution_time": 0.01904892921447754, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.ad_reporting.not_null_ad_reporting__ad_group_report_ad_group_id.963e17e842", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom \"postgres\".\"ad_reporting_docs_ad_reporting\".\"ad_reporting__ad_group_report\"\nwhere ad_group_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.692170Z", "completed_at": "2024-07-29T18:33:48.709723Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.710866Z", "completed_at": "2024-07-29T18:33:48.710869Z"}], "thread_id": "Thread-2", "execution_time": 0.019649028778076172, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_ad_reporting\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.687613Z", "completed_at": "2024-07-29T18:33:48.709921Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.711215Z", "completed_at": "2024-07-29T18:33:48.711219Z"}], "thread_id": "Thread-1", "execution_time": 0.02525782585144043, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.ad_reporting.not_null_ad_reporting__account_report_account_id.316a64c022", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom \"postgres\".\"ad_reporting_docs_ad_reporting\".\"ad_reporting__account_report\"\nwhere account_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.717529Z", "completed_at": "2024-07-29T18:33:48.727221Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.727433Z", "completed_at": "2024-07-29T18:33:48.727438Z"}], "thread_id": "Thread-4", "execution_time": 0.014639854431152344, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.ad_reporting.not_null_ad_reporting__campaign_report_campaign_id.1cfaa7698b", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom \"postgres\".\"ad_reporting_docs_ad_reporting\".\"ad_reporting__campaign_report\"\nwhere campaign_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.714352Z", "completed_at": "2024-07-29T18:33:48.731720Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.732206Z", "completed_at": "2024-07-29T18:33:48.732210Z"}], "thread_id": "Thread-3", "execution_time": 0.019648075103759766, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_ad_reporting\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.720317Z", "completed_at": "2024-07-29T18:33:48.731964Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.732567Z", "completed_at": "2024-07-29T18:33:48.732570Z"}], "thread_id": "Thread-2", "execution_time": 0.01952505111694336, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_ad_reporting\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.724175Z", "completed_at": "2024-07-29T18:33:48.732920Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.733802Z", "completed_at": "2024-07-29T18:33:48.733806Z"}], "thread_id": "Thread-1", "execution_time": 0.020534038543701172, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.ad_reporting.not_null_ad_reporting__keyword_report_keyword_id.51a45fb334", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect keyword_id\nfrom \"postgres\".\"ad_reporting_docs_ad_reporting\".\"ad_reporting__keyword_report\"\nwhere keyword_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.728448Z", "completed_at": "2024-07-29T18:33:48.733609Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.734618Z", "completed_at": "2024-07-29T18:33:48.734621Z"}], "thread_id": "Thread-4", "execution_time": 0.0066449642181396484, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_ad_reporting\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.736139Z", "completed_at": "2024-07-29T18:33:48.806233Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.812619Z", "completed_at": "2024-07-29T18:33:48.812626Z"}], "thread_id": "Thread-3", "execution_time": 0.07853507995605469, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.ad_reporting.not_null_ad_reporting__search_report_search_query.ee2f0fcafb", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect search_query\nfrom \"postgres\".\"ad_reporting_docs_ad_reporting\".\"ad_reporting__search_report\"\nwhere search_query is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.739011Z", "completed_at": "2024-07-29T18:33:48.812421Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.813086Z", "completed_at": "2024-07-29T18:33:48.813090Z"}], "thread_id": "Thread-2", "execution_time": 0.07875204086303711, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.ad_reporting.ad_reporting__url_report", "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(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\".\"ad_reporting_docs_google_ads\".\"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(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\".\"ad_reporting_docs_microsoft_ads\".\"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(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\".\"ad_reporting_docs_facebook_ads\".\"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(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\".\"ad_reporting_docs_linkedin_ads\".\"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(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\".\"ad_reporting_docs_pinterest\".\"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(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\".\"ad_reporting_docs_snapchat_ads\".\"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(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\".\"ad_reporting_docs_tiktok_ads\".\"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(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\".\"ad_reporting_docs_twitter_ads\".\"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(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\".\"ad_reporting_docs_reddit_ads\".\"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\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", "relation_name": "\"postgres\".\"ad_reporting_docs_ad_reporting\".\"ad_reporting__url_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.806431Z", "completed_at": "2024-07-29T18:33:48.813662Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.814083Z", "completed_at": "2024-07-29T18:33:48.814086Z"}], "thread_id": "Thread-1", "execution_time": 0.07822203636169434, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_ad_reporting\".\"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", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.809591Z", "completed_at": "2024-07-29T18:33:48.813890Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.814872Z", "completed_at": "2024-07-29T18:33:48.814875Z"}], "thread_id": "Thread-4", "execution_time": 0.00985097885131836, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.ad_reporting.not_null_ad_reporting__ad_report_ad_id.f3eb210152", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom \"postgres\".\"ad_reporting_docs_ad_reporting\".\"ad_reporting__ad_report\"\nwhere ad_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.821404Z", "completed_at": "2024-07-29T18:33:48.825319Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.825735Z", "completed_at": "2024-07-29T18:33:48.825739Z"}], "thread_id": "Thread-2", "execution_time": 0.010299921035766602, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.ad_reporting.not_null_ad_reporting__url_report_base_url.a29864e5b6", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect base_url\nfrom \"postgres\".\"ad_reporting_docs_ad_reporting\".\"ad_reporting__url_report\"\nwhere base_url is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-07-29T18:33:48.816173Z", "completed_at": "2024-07-29T18:33:48.825514Z"}, {"name": "execute", "started_at": "2024-07-29T18:33:48.826082Z", "completed_at": "2024-07-29T18:33:48.826085Z"}], "thread_id": "Thread-3", "execution_time": 0.01094198226928711, "adapter_response": {}, "message": null, "failures": null, "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", "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\".\"ad_reporting_docs_ad_reporting\".\"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", "relation_name": null}], "elapsed_time": 34.785786151885986, "args": {"send_anonymous_usage_stats": true, "indirect_selection": "eager", "use_colors_file": true, "invocation_command": "dbt docs generate", "log_level": "info", "write_json": true, "profiles_dir": "/Users/jamie.rodriguez/.dbt", "vars": {}, "print": true, "project_dir": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests", "enable_legacy_logger": false, "require_resource_names_without_spaces": false, "partial_parse_file_diff": true, "quiet": false, "static": false, "empty_catalog": false, "exclude": [], "log_path": "/Users/jamie.rodriguez/Desktop/dbt_repos/Ads/dbt_ad_reporting/integration_tests/logs", "strict_mode": false, "version_check": true, "log_file_max_bytes": 10485760, "cache_selected_only": false, "source_freshness_run_project_hooks": false, "macro_debugging": false, "which": "generate", "select": [], "static_parser": true, "compile": true, "partial_parse": true, "defer": false, "warn_error_options": {"include": [], "exclude": []}, "introspect": true, "require_explicit_package_overrides_for_builtin_materializations": true, "use_colors": true, "printer_width": 80, "log_format": "default", "populate_cache": true, "show_resource_report": false, "log_format_file": "debug", "log_level_file": "debug", "favor_state": false}} \ No newline at end of file diff --git a/integration_tests/dbt_project.yml b/integration_tests/dbt_project.yml index 3d4df4a..04fadb9 100644 --- a/integration_tests/dbt_project.yml +++ b/integration_tests/dbt_project.yml @@ -1,5 +1,5 @@ name: 'ad_reporting_integration_tests' -version: '1.9.0' +version: '1.10.0' profile: 'integration_tests' config-version: 2 @@ -10,8 +10,10 @@ dispatch: - macro_namespace: dbt_expectations search_order: ['google_ads_source', 'dbt_expectations'] -vars: - +models: + +schema: "ad_reporting_{{ var('directed_schema','dev') }}" + +vars: apple_search_ads__using_search_terms: True twitter_ads__using_keywords: False @@ -23,7 +25,7 @@ vars: 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_report_identifier: "apple_search_ad_report_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" @@ -251,6 +253,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/packages.yml b/integration_tests/packages.yml index b16d307..4a6b9c1 100644 --- a/integration_tests/packages.yml +++ b/integration_tests/packages.yml @@ -1,2 +1,2 @@ packages: - - local: ../ \ No newline at end of file + - local: ../ 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 new file mode 100644 index 0000000..a50f33c --- /dev/null +++ b/integration_tests/tests/consistency/consistency_ad_report.sql @@ -0,0 +1,51 @@ +{{ config( + tags="fivetran_validations", + enabled=var('fivetran_validation_tests_enabled', false) +) }} + +with prod as ( + select + date_day, + platform, + sum(clicks) as clicks, + sum(impressions) as impressions, + sum(spend) as spend + from {{ target.schema }}_ad_reporting_prod.ad_reporting__ad_report + group by 1, 2 +), + +dev as ( + select + date_day, + platform, + sum(clicks) as clicks, + sum(impressions) as impressions, + sum(spend) as spend + from {{ target.schema }}_ad_reporting_dev.ad_reporting__ad_report + group by 1, 2 +), + +final as ( + select + prod.date_day, + dev.date_day, + prod.platform, + dev.platform, + prod.clicks as prod_clicks, + dev.clicks as dev_clicks, + prod.impressions as prod_impressions, + dev.impressions as dev_impressions, + prod.spend as prod_spend, + dev.spend as dev_spend + from prod + full outer join dev + on dev.date_day = prod.date_day + and dev.platform = prod.platform +) + +select * +from final +where + abs(prod_clicks - dev_clicks) >= .01 + or abs(prod_impressions - dev_impressions) >= .01 + or abs(prod_spend - dev_spend) >= .01 \ No newline at end of file diff --git a/integration_tests/tests/consistency/consistency_url_report.sql b/integration_tests/tests/consistency/consistency_url_report.sql new file mode 100644 index 0000000..41fbb8f --- /dev/null +++ b/integration_tests/tests/consistency/consistency_url_report.sql @@ -0,0 +1,48 @@ +{{ config( + tags="fivetran_validations", + enabled=var('fivetran_validation_tests_enabled', false) +) }} + +with prod as ( + select + date_day, + platform, + sum(clicks) as clicks, + sum(impressions) as impressions, + sum(spend) as spend + from {{ target.schema }}_ad_reporting_prod.ad_reporting__url_report + group by 1, 2 +), + +dev as ( + select + date_day, + platform, + sum(clicks) as clicks, + sum(impressions) as impressions, + sum(spend) as spend + from {{ target.schema }}_ad_reporting_dev.ad_reporting__url_report + group by 1, 2 +), + +final as ( + select + prod.date_day, + prod.clicks as prod_clicks, + dev.clicks as dev_clicks, + prod.impressions as prod_impressions, + dev.impressions as dev_impressions, + prod.spend as prod_spend, + dev.spend as dev_spend + from prod + full outer join dev + on dev.date_day = prod.date_day + and dev.platform = prod.platform +) + +select * +from final +where + abs(prod_clicks - dev_clicks) >= .01 + or abs(prod_impressions - dev_impressions) >= .01 + or abs(prod_spend - dev_spend) >= .01 \ No newline at end of file diff --git a/packages.yml b/packages.yml index 8b6d467..706c367 100644 --- a/packages.yml +++ b/packages.yml @@ -11,8 +11,12 @@ packages: - package: fivetran/google_ads version: [">=0.11.0", "<0.12.0"] - - package: fivetran/linkedin - version: [">=0.9.0", "<0.10.0"] + # - package: fivetran/linkedin + # version: [">=0.10.0", "<0.11.0"] + + - git: https://github.com/fivetran/dbt_linkedin.git + revision: feature/click-uri-updates + warn-unpinned: false - package: fivetran/microsoft_ads version: [">=0.8.0", "<0.9.0"]